Skip to content

Commit 11c276d

Browse files
Update README.md
1 parent b255589 commit 11c276d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,14 @@ render() {
422422

423423
### How to add a module?
424424

425-
To add a module, import and initialize it:
425+
To add a module, import it like so:
426426

427427
```jsx
428428
import Highcharts from 'highcharts'
429-
import highchartsGantt from "highcharts/modules/gantt";
429+
import highchartsGantt from "highcharts/modules/gantt"; // The Gantt module
430430
import HighchartsReact from 'highcharts-react-official'
431431

432-
// init the module
432+
// Init the module (only for Highcharts v < 12)
433433
if (typeof highchartsGantt === 'function') {
434434
highchartsGantt(Highcharts);
435435
}

0 commit comments

Comments
 (0)