Using svg's in react

Hello, I am developing an application based on create-react-app for a TV and I ran into a problem with using SVG files. The issue is that to make the app work properly on the TV, I have to manually modify the build files. This involves replacing paths in index.html , changing paths like “/config.js” to “config.js”, and doing the same with CSS files. But how do I handle SVG files that I use within JSX in React files? For example:
import BlankPoster from “…/…/img/blank-poster.svg”
import BlankScreenshot from “…/…/img/blank-screenshot.svg”

The path to each asset should be specified relative to the index.html file. You can refer to App Resources and Luna Service sample app. Thank you.