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.
> It's a shame commercial vendors don't do this sort of thing for their product docs more regularly.
I've been trying. I'm even building something to make adoption easier, not launched yet but it's here https://docskit.codehike.org