It is a simple tutorial to fetch data from a local JSON file

React Logo
|-node_modules
|-public
|-data.json (our json file)
|-src
|-components (it is going to contain the components)
|-hooks (custom hook which will fetch by calling util function)
|-utils (the js function which will fetch data)
|-app.js
public/data.json
{
"persons": […

Arkumari Kumari

I am a developer. Pursuing my Btech.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store