Skip to main content
“Talk is cheap. Show me the code.” ― Linus Torvalds
Web Development » TypeScript
You are here
TypeScript: Error when loading image (png)
18 Jun, 2022
In react you can import image and use it in JSX, so that the compiler knows to load the asset. Apparently by default TypeScript doesn't support image files to be loaded. So you have to add new...