theKashey / used-styles

📝All the critical styles you've used to render a page.
MIT License
138 stars 10 forks source link

Usage example for CRA #32

Open igorshmukler opened 3 years ago

igorshmukler commented 3 years ago

Would be awesome have an example of usage of this package together with cra (create-react-app). I could help with the ssr/server part of this, if needed.

theKashey commented 3 years ago

Has CRA got SSR support? It was avoiding it since day one.

igorshmukler commented 3 years ago

No CRA does not have built-in SSR support, much like it does not have redux, etc. I am happy to contribute SSR part, along with some type of state management, like redux-thunk or redux-saga.

Sorry for not being clear, I guess... If was to PR a CRA-made example app, along with state management and SSR, would you be willing to show how to integrate your CSS inlining? I believe that it could be very helpful to anyone still using CRA and even other starter packages, like react-boilerplate.