Skip to content

Commit

Permalink
append not appendChild
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 24, 2020
1 parent 3566641 commit 264a683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exercise/02.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
element.textContent = 'Hello World' // 💰 in React, you set this with the "children" prop
element.className = 'container' // 💰 in React, this is also called the "className" prop
// This is similar to ReactDOM.render
rootElement.appendChild(element)
rootElement.append(element)

// 🐨 Please re-implement the regular document.createElement code above
// with these React API calls
Expand Down

0 comments on commit 264a683

Please sign in to comment.