Post

Access package.json in React

1
2
3
4
import packageJson from '../../package.json'

// or
const packageJson = await import("../../package.json");
1
`/${packageJson.homepage}/api/code/NAT/*`
This post is licensed under CC BY 4.0 by the author.