Skip to content

Commit cd154ce

Browse files
authored
Update 4.html
1 parent a08a579 commit cd154ce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

4.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ <h1>Shopping List for {this.props.name}</h1>
8080

8181
let baseDiv = document.querySelector("#root");
8282

83-
// Note the this.props.name. We can pass that prop during construction as below:
84-
// Props in react are just attributes on their
83+
// Note the this.props.name.
84+
// We can pass that prop during construction as below
85+
// Props in react are just attributes on the element
8586

86-
// Below is the render function from react-dom. It injects a react component into a component in the regular dom.
87+
// Below is the render function from react-dom
88+
// It injects a react component into a component in the regular dom.
8789
render(<ShoppingList name="Whatever" />, baseDiv)
8890
</code></pre>
8991
</section>

0 commit comments

Comments
 (0)