useHotjar
#
DescriptionHook that initializes Hotjar for the application.
#
Usageimport { useContext } from 'react';import { useHotjar } from '@springtree/eva-suite-react-hooks';import { EvaBootstrapContext } from '@springtree/eva-suite-composite';
const App = () => { // ... const { evaConfig } = useContext(EvaBootstrapContext); useHotjar(evaConfig?.isProduction); // Alternatively you can use `process.env.NODE_ENV === 'production'`
// ...};
export default App;