babel-plugin-inline-react-svg icon indicating copy to clipboard operation
babel-plugin-inline-react-svg copied to clipboard

A babel plugin that optimizes and inlines SVGs for your React Components.

Results 44 babel-plugin-inline-react-svg issues
Sort by recently updated
recently updated
newest added
trafficstars

Message from react: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-deprecated-react-apis

help wanted

Drop `defaultProps` from the generated component as they are now **deprecated** and will be removed in React 19. They were added in #8 due to concerns about the overhead of...

This should close https://github.com/airbnb/babel-plugin-inline-react-svg/issues/126 I've changed the code to: - Use inline 'defaultProps' in the generated SVG components - Use `object.assign` to merge the prop overrides (see linked issue) -...

I'm changing the code emission so that it emits class components so that we don't get `defaultProps` [deprecated warnings](https://github.com/facebook/react/pull/16210) anymore This is all based on this suggestion here https://github.com/airbnb/babel-plugin-inline-react-svg/pull/129#issuecomment-2525330068 but...