Skip to content
Advertisement

Tag: tsx

Can’t load image from svg on React.js

The Issue I was working to load image from svg(Scalable Vector Graphics) file on React. I tried a few solution ways and I didn’t received any result. Those are solutions that have been tried: Solution – 1 Firstly, I was reading many articles and seen this way: Directly set source to svg. But that didn’t work. Solution – 2 Secondly,

tsx extension error in React project with Typescript

I’m trying to move my project from js to ts, so I’ve installed typescript and now I’m changing the extension of all files from .js to .tsx, then I tried to launch again the project and seems that can’t resolve .tsx files This is the folder tree of my project (Note that I just changed my Button component to .tsx

Advertisement