๐ฅ๐ react-boilerplate
- Boilerplate project for creating simple web application with React.js
- with Create React App
๐ฎ Dependencies
react
react-router-dom
styled-components
dependency | version |
---|---|
react | ^17.0.1 |
react-dom | ^17.0.1 |
react-router-dom | ^5.2.0 |
styled-components | ^5.2.1 |
prettier | ^2.2.1 |
๐คนโโ๏ธ Usage
git clone https://github.com/yj-oh/react-boilerplate.git
yarn install
yarn start
๐ Structure
๐ project
|-- ๐ node_modules
|-- ๐ public
|-- ๐ src
| |-- ๐ App.js
| |-- ๐ index.css
| |-- ๐ index.js
| `-- ๐ setupTests.js
|-- ๐ .gitignore
|-- ๐ .prettierrc
|-- ๐ package.json
|-- ๐ README.md
`-- ๐ yarn.lock
๐งน Prettier
.prettierrc
{
"arrowParens": "always",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": true,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"useTabs": true,
"tabWidth": 4,
"trailingComma": "all"
}