score:2

Add a parallel file in you project, ex myConfig.js. Inside this file, export this const like

export const ABC = {
    jane: 0,
    john: 1,
 };

Then import this newly created myConfig.js in your above said react file (ProjectPage) like:

import * as myConfig from './myConfig';
// or import only what you need directly
import { ABC } from './myConfig';

Now, just use wherever you want in this file like myConfig.ABC;


Related Query

More Query from same tag