Skip to content

Commit 1fcaa93

Browse files
committed
short blurb about renderComponent
1 parent f49f071 commit 1fcaa93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lesson1.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ <h1>Your Sanbox</h1>
8484
<div class="row">
8585
<div class="col-sm-12">
8686
<p>
87-
Most of the code on the pages is live editable. An explanation for how the code viewer works is at the end of lesson 2. "basic.html" has been created for you so that you can experiment in creating your own components in an environment that is already setup.
87+
Most of the code on the pages is live editable. An explanation for how the code viewer works is at the end of lesson 2.
88+
<a href="./basic.html">basic.html</a> has been created for you so that you can experiment in creating your own components in an environment that is already setup.
8889
</p>
8990
</div>
9091
</div>
@@ -127,7 +128,7 @@ <h1>Components as Tags</h1>
127128
<div class="col-sm-12">
128129
<h2>JSX Syntax</h2>
129130
<p>
130-
React JSX is transpiled to Javascript. This allows for mixing html and javascript syntax.
131+
React JSX is transpiled to Javascript. This allows for mixing html and javascript syntax.
131132
</p>
132133
</div>
133134
</div>
@@ -148,6 +149,7 @@ <h2>JSX Syntax</h2>
148149
<li>Brackets ("{}") are used to evaluate javascript within the tags.</li>
149150
<li>The attributes of a tag are mapped to as props for the component state</li>
150151
<li>The contents are mapped to the props.children for the component state</li>
152+
<li>React.renderComponent mounts a given component inside a DOM element</li>
151153
</ul>
152154
<div class="result" id="defineRender"></div>
153155
</div>

0 commit comments

Comments
 (0)