Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobhsu/react-notes
https://github.com/jacobhsu/react-notes
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobhsu/react-notes
- Owner: JacobHsu
- Created: 2022-02-09T02:40:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T08:31:26.000Z (3 months ago)
- Last Synced: 2024-10-19T11:49:20.200Z (3 months ago)
- Size: 143 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-notes
codesandbox url `react.new`
`npm init react-app firstapp`
[Adding TypeScript](https://create-react-app.dev/docs/adding-typescript/)
```js
sudo npx create-react-app my-app --template typescript
or
yarn create react-app my-app --template typescript
```[Using Create React App](https://react-redux.js.org/introduction/getting-started)
```js
# Redux + Plain JS template
npx create-react-app my-app --template redux# Redux + TypeScript template
npx create-react-app my-app --template redux-typescript
```[Importing a Component](https://pjchender.dev/react/note-create-react-app/)
jsconfig.json
```js
// ./jsconfig.json
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
```[Docusaurus](https://docusaurus.io/zh-CN/) · Easy to Maintain Open Source Documentation
`$ npx docusaurus-init`## cra
如果想要無 eject 重寫 CRA 配置
使用 [craco](https://github.com/dilanx/craco) 覆蓋配置 (
Material-UI AntDesign4 官方推薦)
使用 react-app-rewired + customize-cra 組合覆蓋配置