In the SVG file, try changing:
sketch:type TO sketchType
xmlns:xlink TO xmlnsXlink
xlink:href TO xlinkHref
etc…
The idea is to create camelCase property, remember that you are working with JSX, you are not creating a string as XML does.
More Related Contents:
- How to display svg icons(.svg files) in UI using React Component?
- Import SVG as a component in Gatsby
- We simply cannot write “ in ReactJS?
- Dynamic tag name in React JSX
- Error : Cannot read property ‘map’ of undefined
- How do I hide API key in create-react-app?
- Clear and reset form input fields
- How to resolve “Cannot use import statement outside a module” in jest
- Hide keyboard in react-native
- React app exiting in docker container with exit code 0
- useNavigate() may be used only in the context of a component
- Testing React components that fetches data using Hooks
- Trace why a React component is re-rendering
- What is the difference between using constructor vs getInitialState in React / React Native?
- How to hash CSS class names in Nextjs?
- React passing parameter via onclick event using ES6 syntax
- React fetch data in server before render
- Call child component method from parent in react
- How to generate unique IDs for form labels in React?
- how to change jest mock function return value in each test?
- How to set build .env variables when running create-react-app build script?
- What is the expected return of `useEffect` used for?
- how to async/await redux-thunk actions?
- ReactJS – prevState in the new useState React hook?
- You cannot render a inside another . You should never have more than one in your app
- React – Is useState ‘s setter function able to change?
- How to go back to previous route in react-router-dom v6
- React – “localStorage is not defined” error showing
- Is it possible to return empty in react render function?
- How to remove the hash from the url in react-router