How to Import SVGs as ReactComponent in React #19234
Unanswered
something-to-test21312
asked this question in
Q&A
Replies: 1 comment
-
|
I think you are looking for https://react-svgr.com/docs/webpack/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I removed react-scripts (CRA) from the project and started configuring Webpack from scratch using the latest versions of Webpack and Babel. The project contains over 1,000 SVG imports from the public folder as ReactComponent, so I need help importing SVGs as ReactComponents
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions