Hi all,
What is your experience regarding an external shared nextJS components module and it's implementation in different projects.
Basically what we have now is 2 projects that have around 80% of the same code (react components) and we would like to have the 80% code reusable in both nextJS projects (and other future projects).
We currently have an external modules using nextJS with the reusable components, which is linked with npm link to the 2 projects that using the reusable models, everything is going well besides one problem we're experiencing:
The styles of an imported reusable component (written in styled-jsx) are being loaded few seconds after the html is being loaded (so basically you see an image with no style and around 500 ms later you see that the style kicks in).
So how can you make sure there is no delay when loading the styling and would could be the problem causing it ?
And last but not least what is your experience with shared components and later reusing them in different projects ?
tnx