DEV Community

Harish raj
Harish raj

Posted on Edited on

React Quiz Application: Navigation, Routing, and JSON Data

use navigate is used to change component to component .browser is used to change file to file json is a array of object[(),(),()]

import json from file
question.json----> is file

in jsx file
import question from '../assets/question.jsons'
|
V
the dot used for go out to file

assest <--- src
any outsource file in assets like store image.json

Top comments (0)