How to Use Loaded SVG Module
问题 I have set up webpack to load SVG files into my TSX port of the create-react-app, per this answer: const logo = require('./logo.svg'); However, when I try to use it as follows I get a nasty 404. <img src={logo} className="App-logo" alt="logo" /> Failed to load resource: the server responded with a status of 404 () [object%20Module]:1 This makes sense - I require the svg, so it loads as a module, and you can't jolly well make a src URL out of that. That being said, how do I use an SVG loaded