-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An option to use solid-styled-jsx #69
Comments
Hey! That could be an idea yeah. I'd need to check how it works properly and see if we can run it in the browser. Out of curiosity, what problem does it solves for you? :) |
About solid-styled-jsx specifically, it would let us write scoped styles in JSX in the playground, like so: return <>
<div ...>...</div>
<style jsx> div {color: deeppink} </style>
</> And this As for options, that'd be handy. One problem is that Solid TypeScript is written with More generally, it'd be nice if playground started with .jsx files, then an option would turn on TS mode with .tsx files and strict by default to match the environment Solid types were designed for (in strict false mode, some of Solid's types don't work as expected and always return |
The desire for this comes from having such features in Vue, for example, and wanting to migrate code from Vue to Solid. I would rather not use style attributes, but CSS including all it's features like selectors and the cascade. |
solid-styled-jsx requires a babel plugin, but solid-styled-components might be an alternative that doesn't? https://playground.solidjs.com/?hash=1975487650&version=1.2.6 |
I think this a precursor to people wanting other babel plugins etc.. On the fence a bit since requires more work/interface and ties things to babel. It is convenient to have a style solution like this but Vue and Svelte also have official solutions. |
Thanks for the playground. Is it planed to support |
It'd be nice to be able to use solid-styled-jsx in the editor.
Maybe there can be an option for it. More generally (merits a new issue) there could be an option system.
The text was updated successfully, but these errors were encountered: