Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 23, 2020
1 parent 9ad62eb commit 8f6a1c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exercise/02.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
// 💣 So go ahead and delete this implementation (or comment it out for now)
// These three lines are similar to React.createElement
const element = document.createElement('div')
element.textContent = 'Hello World'
element.className = 'container'
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)

Expand Down

0 comments on commit 8f6a1c0

Please sign in to comment.