The `@trackunit/react-core-contexts` package contains the core context providers for the [Iris App SDK](https://www.npmjs.com/package/@trackunit/iris-app).
npm install @trackunit/react-core-contexts@trackunit/react-core-contexts package contains the core context providers for the Iris App SDK.For more info and a full guide on Iris App SDK Development, please visit our Developer Hub.
The TrackunitProviders component is exposed through the @trackunit/react-core-contexts package.
The component is a wrapper for all the base react providers needed to use contexts available in the trackunit manager.
This makes it possible to use Hooks and complex components in your Iris App.
Inside the provider the following hooks from react-core-hooks can be used:
- Get data on the current user through useCurrentUser hook.
- Read the current environment through the useEnvironment hook.
- Get the users subscription package and features with the useUserSubscription hook.
- Obtain an access token from the useToken hook.