reactql
reactql copied to clipboard
Load global style on demand
I'd like to show GraphiQL with it's global styles. At the moment there are just one main.css
file in ReactQL and it contains all the global styles (even if you are not loaded this component with it's style). How to load ~graphiql/graphiql.css
only when the graphiql component is loaded, on demand?
Another use case could be: load component with it's global style when changing context to logged in state, to split auth/unauth route components. But it's additionally takes into account not just CSS, but also components itself.