Example implementation of rate exchange view / edit:
It's based on create-react-app.
Project aims to experiment with Bootsrtap 4 as a base for layout components. It picks MDBootstrap in order to verify library maturity.
npm installoryarnnpm startoryarn start
npm run test aoryarn run test a
For now only one example of test is written using jest / enzyme / sinon in TextField.test.tsx.
Project is still open for improvements. Here are some ideas:
mdbreactproved to have some issues while working with form components, try next releases.- At this moment react version had to be dropped to
15due to various issues.
- At this moment react version had to be dropped to
- Consider tighter separation of UI and business logic concerns:
- Define clear rules on where to place and how to structure models for API, views and CRUD operations.
- Define base classes for reusable UI behavior like sorting.
- Dive more into generic classes and interfaces.
- Reorganize stores in order to make them testable. Following options:
- inject
agentinstead of creating new instance in constructor sotestAgentcould be injected. - make store generic like
ExchangeRateStore<T implements IExchangeStore>so the proper class could be passed.
- inject

