Responsive react app with flexbox & css grid

Please log in to post a comment
Log in with GitHubCommunity feedback
- @notapatch
In your Dashboard.js why did you decide to put the data in Javascript object literals:
const dailyData = [{ current: 5, previous: 7 }, { current: 1, previous: 2 }, { current: 0, previous: 1 }, { current: 1, previous: 1 }, { current: 1, previous: 3 }, { current: 0, previous: 1 }, ];
Rather than importing the data in from the JSON file?
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord