A spike for building a quick trade tile using React.
Demo available here: http://adamshone.github.io/react-tile/app/.
Demo no longer available because there isn't a gh-pages equivalent in Stash.
- git clone https://[email protected]/scm/capdemo/react-tile.git
- npm install
- grunt serve
The demo runs on port 8000.
- price updates
- change currency pair (must be changed to a six character string)
- dealt currency toggle
- amount change (only valid numbers are accepted)
- add propTypes to make the components fail fast if they don't get the right props
- package management instead of lots of script tags (Webpack?)
- unit tests
- if you use
display: inline-blockthe whole component gets repainted always. Need to find out why.