S
SolidJS•7mo ago
FjordWarden

Custom renderer with hyper dom expressions

I've been trying to write my own custom renderer with the solid-js/universal module, but I am failing to understand how I should integrate the renderer into for example a Canvas component. I've studied the solid-three example and solid-universal-renderer-template examples and they seem to use directive in vite.config.js to tell the transpiler somehow to use the other renderer. I'm just using vanilla js so maybe I need to path solid/h in some way to get this to work. At any rate I'd appreciate if someone could tell me this is the right direction to take.
1 Reply
bigmistqke
bigmistqke•7mo ago
mm 🤔 i wonder if the universal renderer even works with the hyperscript-function. I think it might be a jsx thing. To enable the universal renderer you normally adapt the vite.config: for example https://github.com/whoisryosuke/solid-universal-renderer-template/blob/main/packages/demo/vite.config.js
GitHub
solid-universal-renderer-template/packages/demo/vite.config.js at m...
Template for creating and testing SolidJS universal renderers - whoisryosuke/solid-universal-renderer-template
Want results from more Discord servers?
Add your server