File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,12 @@ <h1>Shopping List for {this.props.name}</h1>
80
80
81
81
let baseDiv = document.querySelector("#root");
82
82
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
85
86
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.
87
89
render(< ShoppingList name ="Whatever " /> , baseDiv)
88
90
</ code > </ pre >
89
91
</ section >
You can’t perform that action at this time.
0 commit comments