-
Regarding styled-components and many similar CSS-in-JS libraries, I don't think there are any breaking changes currently with React 18, but it does seem like the writing is on the wall that React intends to not support libraries that inject styles into tags, or at least has some specific rules these libraries need to follow to avoid performance problems. See this discussion: <a href="https://github.com/reactwg/react-18/discussions/110" rel="nofollow">https://github.com/reactwg/react-18/discussions/110</a>
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Awesome! Glad this is finally out, and really looking forward to seeing what features the React team adds in follow-up releases.
FWIW, React-Redux v8 is in beta right now:
- https://github.com/reduxjs/react-redux/releases
I think it's basically ready to go, but I haven't had a chance to really test out the SSR support I added a couple months ago. I'd love to have some help testing that out.
v7 will _run_ with React 18, but v8 has been specifically reworked to behave correctly when used with React's new "Concurrent Rendering" capabilities. We've also converted React-Redux itself to TS (no more separate types package).
Ideally, I'd like to release v8 as final in the next week or two.
-
If you'd like to migrate them, the React team maintains some awesome codemods:
https://github.com/reactjs/react-codemod
-
-
Not specifically. The general problem we were running into is:
- We recommend inferring `type RootState = ReturnType`
- That type comes from the slice reducers
- Thunks need a `State` type passed in so they know what `getState` returns
- But if you do that _inside_ of `createSlice`, TS can't know that `RootState` type yet, because we haven't constructed the slice reducer yet
Here was the PR where we tried to come up with something:
https://github.com/reduxjs/redux-toolkit/pull/637
If you're seeing some other issue problem related to RTK, please go ahead and file an issue.