Design comparison
SolutionDesign
Solution retrospective
My svg images arent displaying
Community feedback
- @jphironPosted over 2 years ago
Hi @19alema
I've not come across the syntax you've used to export your SVGs from constants, but generally if you treat them simply as a direct ES6 named import and export, i.e.
import Clientdatabiz from "../Assets/images/client-databiz.svg" ... export { Clientdatabiz }
then that should work! I'm not sure you can export them as a ReactComponent, as they transpile to the source to the image itself.
Let me know if this helps!
Jack
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord