Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Puru
Explore posts from servers
N
Nuxt
S
SolidJS
Posts
Comments
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Heya Im releasing it as a directive only. Simplest for me, and wont cause any troubles during rendering either
https://github.com/PuruVJ/neoconfetti/pull/22
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Its one extra line of code for the user but keeps the sizes very very small
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Kay IG Ill ship the directive version only then 😅
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Im trying to keep the sizes as low as possible, this seems too much
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
This seems nice
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Ohh I am using esbuild for the bundling
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Ughh the output seems to differ from client-side to server-side to universal
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Apparently the destroy function runs only when the component is destroyed
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
No, I checked for that
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Seems i can import $template directly and return that?
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
I just tried here
https://playground.solidjs.com/anonymous/7f28d020-1ad7-46e1-837f-280ed7ac8416
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Or does the compiled output differ from version to version? 🤔
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
SolidJS itself won't be included in the final build, the imports from Solid will stay
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Ohh
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
I would prefer the
use:
way more, but that is a PIA when used in TypeScript, had a conversation with Ryan Carniato about that when I made @neodrag/solid.
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
One question: If I transpile solid's JSX down to plain old JS, and ship that, will that work after being imported? Or does Solid requires JSX only?
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
But that doesn't help with JSX part, right?
46 replies
S
SolidJS
•
Created by Puru on 12/21/2023 in
#support
React.createElement equivalent?
Gotta test it in SolidStart first though, to see if it works
46 replies