Flash of unstyled content

I’m using Gantt with react, and I’m styling my grid opener via gantt.templates.grid_open, and I can see the default styles right before it switches to mine.

What can I do to prevent the FOUC?

it seems gantt.render() afterwards solved it.