4 ms·
What do you mean by "inability to chunk React"? I've done as you describe, separate Django views have different client components and those components import s
by Demiurge 6y ago
What do you mean by "inability to chunk React"?
I've done as you describe, separate Django views have different client components and those components import subcomponents which are shared as needed, throughout the site. I just have the webpack build each "root" client component individually, and you can separate subcomponents into libraries.
You can even have multiple react apps rendered into their own containers that do not share state as long as you separated them cleanly.
- syndacks 6y agoSorry, "chunking" is code-splitting. https://reactjs.org/docs/code-splitting.html https://reactjs.org/docs/code-splitting.html