I have some Svg files which i want to load as react components in remix run app. for example in create-react-app your could do something like this
import { ReactComponent as Logo } from './logo.svg';
function App() {
return (
<div>
{/* Logo is an actual React component */}
<Logo />
</div>
);
}
is there any similar way in remix-run do achieve the same ?
For me, it only worked by creating a component with the SVG tag and then importing it