Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Is it not reccomended to inline SVGs as JSX? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
6 replies
jamielarkspur1995
Is it not reccomended to inline SVGs as JSX?
I prefer doing this so as to have the svg be a component that I can pass style props to easily
. But for some reason
, one svg in particular is around 1KB gzipped
! Here
's the code for reference
:
message.txt
8.54KB
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
svgs?
TTC
Theo's Typesafe Cult / questions
3y ago
Component cannot be used as JSX Component. Its Instance type is not a valid JSX element
TTC
Theo's Typesafe Cult / questions
4y ago
Is it possible to import SVGs from a shared package in next 15?
TTC
Theo's Typesafe Cult / questions
12mo ago