How would you use Nx env…

less than 1 minute read

How would you use Nx environment files (apps/myapp/src/environments) in React libs?

In Angular I had MyModule.forRoot() and injection tokens, but in React? Should I create a lib with a singleton service which I configure in the app and then I can use it both in the app and in the other libs? Or?