griffel icon indicating copy to clipboard operation
griffel copied to clipboard

react: Better support for React 18

Open layershifter opened this issue 3 years ago • 0 comments

RC for React 18 is already published:

image


NOTE: Make sure you read the section "When to Insert https://github.com/reactwg/react-18/discussions/110

In short we should use useInsertionEffect to apply our styles to DOM.

For reference:

  • changes in Emotion https://github.com/emotion-js/emotion/pull/2600

  • issue with bundling https://github.com/emotion-js/emotion/pull/2651

  • [ ] Types in React 18 does not allow children by default in React.FC, check components and update (#214)

layershifter avatar Feb 21 '22 10:02 layershifter