Simple no-frills code editor with syntax highlighting
MIT License
Bot releases are hidden (Show)
Published by oliviertassinari 4 months ago
2024-07-02
Developers now need to type the ref differently since it isn't a class component anymore:
-const ref = React.useRef<Editor>(null);
+const ref = React.useRef<React.ComponentRef<typeof Editor>>(null);
In practice, few projects should be impacted by this change:
https://tools-public.mui.com/prod/pages/npmVersion?package=react-dom
@oliviertassinari: I believe it's time. React 19 continues to move away from class components, e.g. https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-removing-legacy-context.
This change brings a small bundle size reduction as well:
https://bundlephobia.com/package/[email protected]
Published by oliviertassinari about 2 years ago
Published by satya164 over 2 years ago
Published by satya164 over 2 years ago
Published by satya164 almost 5 years ago
Published by satya164 about 5 years ago
Published by satya164 about 5 years ago
Published by satya164 over 5 years ago
Published by satya164 over 5 years ago
Published by satya164 over 5 years ago
Published by satya164 over 5 years ago
Published by satya164 over 5 years ago
Published by satya164 over 5 years ago
Published by satya164 over 5 years ago
Published by satya164 over 5 years ago
Published by satya164 almost 6 years ago
Published by satya164 almost 6 years ago