export component Greeting({ name }: { name?: string }) { <div class="card"> if (name) { <p>{`Hello, ${name}`}</p> } else { <p>{'Hello, stranger'}</p> } </div> <style> .card { padding: 1rem; } </style> }
Happy to announce TSRX. Think of it as the spiritual successor to JSX.
We extracted it from Ripple, and made it framework agnostic. It can compile to React, Ripple and Solid, other frameworks to come soon.
tsrx.dev