Introduction to React (attributes in JSX) - 7/14


#1

i need help

Give the first

an id attribute of "large".

Give the second

an id attribute of "small".

i forgot how to do the attribute thing but this is what my thing looks like right now:

var p1 =

foo


var p2 =

bar

https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-intro/exercises/attributes-in-jsx

brianna_03


#2

Do you think jumping all over the map is the right approach to learn coding? I don't. The best place to start is HTML/CSS and JavaScript, before embarking on the React course. We need a good understanding of the core document API's.


#3

@brianna_03
Found with a google search
id attribute site:developer.mozilla.org/en-us/
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Attribute/id


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.