Kevv
Seems like I found a JSX bug
As long I know, you can add up variables and raw text inside a tag, something like:
<p>{myVar} people</p>
but if you do that in a SVG's <text>
element inside a <For>
loop it will throw an error, here is it in the playground: https://playground.solidjs.com/anonymous/c5ffdd2c-b93e-469d-bfc7-e5e49d95ba17 If you delete the %
symbol, it will work normally.
Is it a bug? or am I breaking some JSX rule?8 replies