Build Your Own React
Posted by howToTestFE 1 day ago
Comments
Comment by agarren 22 hours ago
Comment by theturtletalks 20 hours ago
Comment by keeganpoppen 18 hours ago
Comment by dleeftink 15 hours ago
Comment by agumonkey 22 hours ago
Comment by Etheryte 12 hours ago
Comment by franciscop 12 hours ago
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.Comment by satvikpendem 7 hours ago
Comment by thecupisblue 11 hours ago
Comment by franciscop 9 hours ago
- Documentation: https://server-js.com/documentation#jsx
- Source of the main renderer: https://github.com/franciscop/server-next/blob/master/src/js...
Comment by alfonsodev 12 hours ago
Comment by franciscop 9 hours ago
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.
Comment by 8n4vidtmkvmk 9 hours ago
Comment by franciscop 9 hours ago
Comment by kitd 15 hours ago
Comment by pomber 14 hours ago
> 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
Comment by javcasas 2 hours ago
Comment by a456463 22 hours ago
Comment by braebo 4 hours ago
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.