Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 9dbabfd

Browse files
Robert BiggsRobert Biggs
Robert Biggs
authored and
Robert Biggs
committed
update
1 parent d8120cf commit 9dbabfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tuts/conditional-rendering.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h1>Conditional Rendering</h1>
8383
<p> </p>
8484

8585
<h2>Conditional Element Variables</h2>
86-
<p>You can use a variable to conditional store an element and the return that in the <code>render</code> function. In the next example we are going to combined the Greeting element from above with conditional rendering of buttons for a login. When the user clicks the button, the logged in status will change visibly on the page. Notice how we store the button in a variable and out put it with <code>{button}</code> in the component's <code>render</code> function, keeping it very clean:</code></p>
86+
<p>You can use a variable to conditionally store an element and then return that in the <code>render</code> function. In the next example we are going to combine the Greeting element from above with conditional rendering of buttons for a login. When the user clicks the button, the logged in status will change visibly on the page. Notice how we store the button in a variable and out put it with <code>{button}</code> in the component's <code>render</code> function, keeping it very clean:</code></p>
8787

8888
<p data-height="300" data-theme-id="6688" data-slug-hash="POwzLv" data-default-tab="js,result" data-user="rbiggs" data-embed-version="2" data-pen-title="Composi Tuts - conditional-rendering-2" class="codepen">See the Pen <a href="https://codepen.io/rbiggs/pen/POwzLv/">Composi Tuts - conditional-rendering-2</a> by Robert Biggs (<a href="https://codepen.io/rbiggs">@rbiggs</a>) on <a href="https://codepen.io">CodePen</a>.</p>
8989
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>

0 commit comments

Comments
 (0)