I don't know how to turn this into code


Give the first <p></p> an id attribute of "large".

Give the second <p></p> an id attribute of "small".
this is what i have so far 
var p1= <p>foo</p> 
    var p2= <p>bar</p>


One step at a time:

  1. Set p1 equal to
  2. a JSX <p></p> element.
  3. Write the word foo in between the <p></p> tags.


How familiar are you with HTML? The reason I ask is that when you code in JSX you will effectively be coding a great deal of HTML.


2 posts were split to a new topic: How to do this?


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