You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
<p>React has a class <code>React.createClass</code>. This is basically the same as creating a new instance of the Composi Component class. Below we use <code>React.createClass</code>. Notice how we have to pass in an object literal as the options of <code>React.createClass</code>:</p>
112
-
113
-
<pdata-height="300" data-theme-id="6688" data-slug-hash="38ae372752f080d9082ad824e3b625f3" data-default-tab="js,result" data-user="rbiggs" data-embed-version="2" data-pen-title="About-React-Instance" class="codepen">See the Pen <ahref="https://codepen.io/rbiggs/pen/38ae372752f080d9082ad824e3b625f3/">About-React-Instance</a> by Robert Biggs (<ahref="https://codepen.io/rbiggs">@rbiggs</a>) on <ahref="https://codepen.io">CodePen</a>.</p>
<p>And here's a new instance of the Composi Component class:</p>
117
-
118
-
<pdata-height="300" data-theme-id="6688" data-slug-hash="JOdYdK" data-default-tab="js,result" data-user="rbiggs" data-embed-version="2" data-pen-title="Composi-About-Instance" class="codepen">See the Pen <ahref="https://codepen.io/rbiggs/pen/JOdYdK/">Composi-About-Instance</a> by Robert Biggs (<ahref="https://codepen.io/rbiggs">@rbiggs</a>) on <ahref="https://codepen.io">CodePen</a>.</p>
0 commit comments