/react-sample

Primary LanguageTypeScript

react-sample

react scaffolding project

react installation

// install react, react-dom, typescript 
npx create-react-app my-react --template typescript

installed library

bootstrap@5.0.0-alpha2 : https://v5.getbootstrap.com/

npm i bootstrap@next

react router

npm install react-router-dom @types/react-router-dom

reference link

react

typescript

mobx

mobx ex

class vs functino component

HoC

test

react-typescript

react-mobx-typescript

cra (Create React App)

react-router

plyfill

production build

route based code splitting

mobx project structure

Stores

Domain Stores
stores the data which'll be needed in your app.
for ex. user data
View Stores
stores the data which'll be needed to present your app
for ex. loading, error variables
Models

Here you can define the data models
for ex- user model
Services

Here you can make services, api calls
Components

Container or Smart Component
Dumb or presentational component

atomic design