Small react app to present my skills. The project is fully focused on logic, working with React and store management. Visual is therefore just very basic. The project is lacting separated Actions to have a complete loop Store -> View -> Action -> Dispatcher because it is too small to have any usefull actions in place (There is just one container that would be able to trigger such Actions and that is APP.tsx, everything else lacks context required for triggering global actions).
- clone the repository
- open clonned repository folder in command line
- run
yarn install
ornpm install
to install dependencies - run
yarn start
ornpm start
- DONE - create visualization of kids
- DONE - collapsing kid tables
- OPTIONAL - add standardjs
- DONE - make jest and enzyme running
- DONE - add posibility to delete row
- DONE - create store
- OPTIONAL - add CSS to make it look more fancy
- Raise test coverage of project
There are unnessesary renders happening because There are no reliable ids That I could have used without poluting data with ids of my own.
- Understanding the data structure and what exactly am I supposed to make took me few days. First two data models went out of the window because they would not match the dinamic possibilies of given data.
- Using MST is be problematic because of dynamic data. Should still be possible. After few unsuccessfull atempts to make it work with MST I've decided to use pure MobX instead.
- Typescript makes development slower but the code is more reliable. Transfer from flow is smoother than I have expected.
- I was struggling with Jest and Enzyme snapshot testing. It was caused by create-react-app missinitialization when I was creating the repository.