We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3bf93 commit 257ae2cCopy full SHA for 257ae2c
package.json
@@ -4,7 +4,7 @@
4
"description": "",
5
"main": "index.js",
6
"scripts": {
7
- "start": "cd ./react-17.0.1 && http-server -p 6001"
+ "start": "http-server -p 6001"
8
},
9
"repository": {
10
"type": "git",
react-17.0.1/index.js
@@ -1,5 +1,10 @@
1
+// console.log('React', React)
2
function App() {
- return <div>Hello, React Source Code!</div>
3
+ const [count, setCount] = React.useState(0)
+ return <div>
+ <div>{count}</div>
+ <button onClick={() => setCount(v => (v + 1))}>Increment</button>
+ </div>
}
ReactDOM.render(<App/>, document.querySelector('#app'))
0 commit comments