Develop function of basic community with Javascript, CRA without state management library (redux, mobx, recoli,,) aiming to strengthen the basics of React.
Thinking about the extensibility of the code in developing.
Inventing a efificent way to seperate components according to design.
Learn about the folder structure and build my own folder structure.
Think about why React use Atomic Design.
> components
> containers
> pages
> routers
> utils
> styles
> > assets
> > ui
Smallest unit of functional groups such as multiple combinations of ui and charts below the list.
Collections of components (1:N) transfers data to the components and performs actions accoring to user actions.
Responsible for one page, Basically responds 1:1 with Helmet information, server data initially requested from the server, and container.
Page to route SPA, Using 'react-router-dom'
Base : RootRouter
A file of functions that are commonly used including custom hooks.
Include axios module setting file, that makes a request ro the server.
ex) api.ts or setupAxios.js
Include commafy, lpad, commondate, history function file.
api call sample
import api from 'src/utils/api';
api
.get('url', {
data: 'value',
})
.then(response => {})
.catch(e => {});
.env .prettierrc.json .eslintrc.json package.json jsconfig.json
.vscode
.idea
.eslintcache
node_modules
build
pakage-lock.json
yarn.lock
yarn-error.log