by franciscop · 11mo ago · 0 comments
export default server()
.get('/', () => <div>Hello world</div>)
.get(...);
I've been using Bun's JSX transformer as well to do the transpilation, and since it's just a renderer on the backend I don't need to worry about events or hooks, just the rendering step. For this, the article was amazing and I learned a lot.- Documentation: https://server-js.com/documentation#jsx
- Source of the main renderer: https://github.com/franciscop/server-next/blob/master/src/js...
With JSX templating, it's a subset of React, so you can directly share "up"t, and sharing "down" is very easy as well (just removing interaction), since both use the same syntax.