npm install
npm run start
ornpm start
- run test
npm run test
or 'npm t'
TypeScript + React + Formik
It's basicly a form component, so I use formik to manager it's state. Also use yup to do form validation. And the step state is manager by formik's status.
In real world application, I may choose rematch or Redux as state manager.
There's a lot of CSS solution out there, it's hard to tell which one is better. Personal I prefer CSS-Module or StyledComponents or styled-jsx(only when using next.js).
Use jest and enzyme for test, __tests__/app.tsx
, only write some basic test for the app flow.