@hodfords/env-react-devtools
v1.0.7
Published
This is repo use for react project base
Readme
Hodfords ENV React Devtools
Installation 🤖
Install PNPM latest version
Install Nodejs >= 20 ( Should be use NVM for install NodeJS )
This library require
react-routerversion >= 7.0.0With NPM:
npm install @hodfords/env-react-devtools --save- with PNPM:
pnpm install @hodfords/env-react-devtoolsUsage 🚀
- First step, config project env and routes for project you want.
import EnvProvider from '@hodfords/env-react-devtools';
<EnvProvider
env={import.meta.env}
routes={routes}
/>env: Env data input form handle change for projectroutes: Current routes of your project config merge with route devtools
- Currently, you don't need to use RouterProvider because in this library are using, just need config router paths for EnvProvider.
- For first time, when you save env configs it's will save to localStorage with name
envVars. So you can sync env configs via localStorage for your project. - Access route path
/devtoolsin your project after install package and finish setup.
License 📝
This project is licensed under the MIT License
