Gist e4feca46f5a47e079e65b8fc7f1905a2
✓ Published0🌍 Public
Aangel-cs
Last edited Feb 4, 2018
Created on Feb 4, 2018
This example shows a React app that routes between a home page with a date picker and a results page, while also fetching historical Bitcoin price data. The code uses `react-datepicker` and `moment` for date selection, and `axios` to request data from the Cryptocompare API endpoint for BTC prices in USD and EUR. A simple switch statement in `routingSystem` controls which component renders, and clicking a "Data" button triggers the API call to populate the app state. The visualization itself is not implemented in the provided code, as it only handles data fetching and basic navigation.
AI-generated description