React
Learning how to install Mighty Whitelabel in React environment
Installation
npm install mighty-academy-widgetUsage
Step 1 - Wrap your application with MightyWrapper:
MightyWrapper:import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { MightyWrapper } from 'mighty-academy-widget';
ReactDOM.render(
<React.StrictMode>
<MightyWrapper>
<App />
</MightyWrapper>
</React.StrictMode>,
document.getElementById('root')
);Step 2 - Initialize the Widget inside app:
Last updated