We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b255589 commit 11c276dCopy full SHA for 11c276d
README.md
@@ -422,14 +422,14 @@ render() {
422
423
### How to add a module?
424
425
-To add a module, import and initialize it:
+To add a module, import it like so:
426
427
```jsx
428
import Highcharts from 'highcharts'
429
-import highchartsGantt from "highcharts/modules/gantt";
+import highchartsGantt from "highcharts/modules/gantt"; // The Gantt module
430
import HighchartsReact from 'highcharts-react-official'
431
432
-// init the module
+// Init the module (only for Highcharts v < 12)
433
if (typeof highchartsGantt === 'function') {
434
highchartsGantt(Highcharts);
435
}
0 commit comments