Syncfusion license key should be registered, if your project using Syncfusion ReactJS packages reference. The generated license key is a string that needs to be registered after any Syncfusion ReactJS reference.
Note: Syncfusion license validation is done offline during application execution and does not require internet access. Apps registered with a Syncfusion license key can be deployed on any system that does not have an internet connection.
The following code is used to register the license.
Register the license key in the index.js
file of the React project.
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { registerLicense } from '@syncfusion/ej2-base';
// Registering Syncfusion license key
registerLicense('License Key');
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
Note: Only from 2022 Vol 1 v20.1.0.47, license key registration required for Essential JavaScript 2 products.