Update README.md

This commit is contained in:
Shy
2024-01-18 14:18:29 +01:00
committed by GitHub
parent 39672197d6
commit 7970c2019c

View File

@@ -30,7 +30,7 @@ This template allows you to use the ingame instances of `React` and `ReactDOM` s
```jsx
import React, {useState} from 'react';
export MyComponent(){
export function MyComponent(){
const [count, setCount] = useState(0);
return <div>Count {count} <button onClick={() => setCount(count + 1)}>Add to count</button></div>;