I tried the below code to import SVG dynamically.
let selectedFloor = require('../svg/floor1.svg');
this.setState({
SvgMap : selectedFloor
})
render() {
return (
<div>
<span dangerouslySetInnerHTML={{ __html: this.state.SvgMap }} />
</div>
);
Result:

js. For example if you're usingwebpackyou may need to setup a loader to handlesvgand make it part of your built app.