Hacker Newsnew | past | comments | ask | show | jobs | submit | nilskj's commentslogin

Yea idk. Or you can just change the perspective to: all the old stuff is actually client model + hydration like oldschool next, but and then you have new capabilities for rendering markup on server with RSC instead of hydration. Just think of it as a new additional tool in your toolbelt that you might want to use to offload big dependencies from the client bundle and run on server instead.

But from that real situation with props.dataSource, I would not expect the state from that useState to return a new value on prop update, even in a normal react app / without next. If you are not setting this client state (with the second method destructed from the hook) you could potentially ditch the useState completely and just run that data.slice(0, defaultShowItems) as is in the function body, or wrap in memo if calculation is expensive.


> Just think of it as a new additional tool in your toolbelt

This is the best way to introduce it. Vercel makes it too complicated in the docs where everything is splitted into app/pages, creating a large ecosystem gap.


Your solution is workable, but abondon the Reactjs philosophy, use state as internal data.

And only if you are a experienced developer, new comers never know how to solve this.


CMS-free blog launcher, smooth user experience and a fancy in-place wysiwyg-editor.

High quality tech with SvelteKit, embedding the SQLite database with the app is such a nicely architectured solution for this.

Congratulations on the fantastic release!


Thank you for the kind words!


Hello! I created a simple example of how to build a quite capable PHP app with HTMX, simple template rendering (PHP is already kind of a templating language!) some error / exception handling and other goodies. This is more of an experiment then something useful, but it is one of the few server side languages that I could build all of this without any framework. Less moving parts and more hypermedia fun.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: