It does not help you with client side, so it is more like composable templates, but they are async, so you can query DB inside your components.
Show HN: Purview – A server-side component framework
31–40 of 56 posts
Re: Show HN: Purview – A server-side component framework
#32Re: Show HN: Purview – A server-side component framework
#33Re: Show HN: Purview – A server-side component framework
#34Existing components/libraries is the only reason I use react.
A good alternative that provides a nice setup for SSR on the initial page load as well as code splitting is nextjs https://github.com/zeit/next.js/
Re: Show HN: Purview – A server-side component framework
#35God, GOD WHY. Whhhyyyyy. Build APIs, not database calls from templates like Rails or PHP garbage. We know how to do this nowwwwwwww don't make this Rails User.friends.comments garbage DB calls from templates
Re: Show HN: Purview – A server-side component framework
#36looks like it's the react version of https://dockyard.com/blog/2018/12/12/phoenix-liveview-intera... ? edit: nvm, it's listed in the readme as inspiration
Yes, that was my inspiration! Chris gave a great talk about it at ElixirConf is anyone is interested in watching: https://www.youtube.com/watch?v=Z2DU0qLfPIY Some differences compared to LiveView: - Type-checking: there are extensive JSX typings ( https://github.com/karthikv/purview/blob/master/src/types/js... ) that ensure you're attaching event handlers with the correct signatures, specifying supported props, using…
Re: Show HN: Purview – A server-side component framework
#37looks like it's the react version of https://dockyard.com/blog/2018/12/12/phoenix-liveview-intera... ? edit: nvm, it's listed in the readme as inspiration
Yes, that was my inspiration! Chris gave a great talk about it at ElixirConf is anyone is interested in watching: https://www.youtube.com/watch?v=Z2DU0qLfPIY Some differences compared to LiveView: - Type-checking: there are extensive JSX typings ( https://github.com/karthikv/purview/blob/master/src/types/js... ) that ensure you're attaching event handlers with the correct signatures, specifying supported props, using…
Re: Show HN: Purview – A server-side component framework
#38So now we're stuffing sql in our react as well as html and CSS? React is on course to reinvent the PHP that everyone spent so long laughing about
The JS ecosystem is insane once you take a step back and look at it.
Re: Show HN: Purview – A server-side component framework
#39God, GOD WHY. Whhhyyyyy. Build APIs, not database calls from templates like Rails or PHP garbage. We know how to do this nowwwwwwww don't make this Rails User.friends.comments garbage DB calls from templates
Why's that garbage? Sometimes a full SPA is not needed.
Re: Show HN: Purview – A server-side component framework
#40So now we're stuffing sql in our react as well as html and CSS? React is on course to reinvent the PHP that everyone spent so long laughing about