docs: add demo for React hooks and context (#150)

This commit is contained in:
harttle
2019-10-08 21:50:59 +08:00
parent 3a7ddaa2c3
commit 7bae5bcb79
8 changed files with 84 additions and 5 deletions
@@ -0,0 +1,14 @@
<header className="App-header">
{{ logo | image }}
<h2>Welcome {{name | capitalize}}</h2>
<p>Edit <code>src/App.js</code> and save to reload.</p>
<p>You have clicked {{clickCount}} times.</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>