I try to use the Layout with React and somehow got it working but to mee it feels like this is not a great solution.
Can someone explain how we are supposed to use things like the layout (or tabbar) with react?
In the react/component world i would expect to be able to define someting like:
<Layout/>
<LayoutCell>
<Gantt/>
</LayoutCell>
</Layout>
Now what i did was i created a react component for the Layout (with react hooks) that has some rows:
{
id: 'content',
css: '',
html: '<div id="content">content</div>',
},
{
id: 'content2',
css: '',
html: '<div id="content2">content2</div>',
},
and use ReactDOM.render to render my components:
ReactDOM.render(
<Provider store={store}>
<Gantt />
</Provider>
document.getElementById('content')
);
But this way i have nested ReactDOM.render calls, which seems to be a bad thing…
Any suggestions to this?