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
The fact that it hasn’t been taken out back and shot continues to baffle me everyday at work as I’m neck deep in Nextjs daydreaming about deleting 2/3 of the code and sticking the remaining Typescript and markup into a Sveltekit app.
This post is cool so sorry for using it to vent… it just kills me seeing how it works and knowing people are celebrating it instead of protesting it.. forcing others like me to use it on purpose.