2 ms·
I think SQL on the frontend is a big opportunity. It’s a powerful declarative language that matches nicely to React. Every component’s data requirements are es
by vaughan 6y ago
I think SQL on the frontend is a big opportunity. It’s a powerful declarative language that matches nicely to React.
Every component’s data requirements are essentially an SQL query, and a lot of client-state could probably be represented in further SQL queries (filtering, aggregation).
Doing joins makes things much more consistent too when the same entities are referenced in multiple places in the UI.
Just like React works declaratively by re-rendering the virtual dom, wouldn’t it be great if we just re-ran a declarative query for the data too?
Kind of like Redux (global state) I guess but a relational model version.