Show HN: React JsonData Class for Displaying API Data – HN Clone Demo in Comment
github.com
github.com
Or view source code on GitHub: https://github.com/dataformsjs/dataformsjs/blob/master/examp...
This demo is browser based with Babel Standalone so give it an extra second or two on a phone.
This component is designed to work well with both `create-react-app` and directly in a browser.
Basic usage: <JsonData url="https://hacker-news.firebaseio.com/v0/topstories.json" isLoading={<ShowLoading />} hasError={<ShowError />} isLoaded={<ShowTopStories />} />