I\'m currently using CSS Modules with React for my styling. So each of my components is importing in it\'s component specific css file, like so:
import React
The only way I found for importing styles globally, but only for a specific route is adding:
inside the return of render method.
Otherwise, the style tag would be added to the , and the styles would be applied for all next routes.
From https://medium.learnreact.com/the-style-tag-and-react-24d6dd3ca974
Maybe the styles could be imported as a string from a file to have the code more organized.