# ReactJS Note
## Create Project
+ CRA
```
npx create-react-app hello-react
```
+ Vite
```
npm create vite@latest hello-vite -- --template react
cd hello-vite
npm install
npm run dev
```
## Snippest
+ Constructor
```jsx
class App extends React.Component {
constructor(props) {
super(props)
this.state = { date: new Date() }
}
}
```
{"metaMigratedAt":"2023-06-17T19:51:52.486Z","metaMigratedFrom":"YAML","title":"ReactJS Note","breaks":true,"description":"ReactJS 統整筆記","contributors":"[{\"id\":\"c7cbb212-2c41-4dfa-8d85-f8e7fa769bf1\",\"add\":590,\"del\":84}]"}