3 ms·
If you're interested in building realtime web apps with Postgres and React, check out https://thin.dev/ https://thin.dev/ Next to great user experience, buildi
by _query 4y ago
If you're interested in building realtime web apps with Postgres and React, check out https://thin.dev/ https://thin.dev/
Next to great user experience, building your application in a realtime way also allows to simplify the state management in certain parts.
A typical react app might use something like redux to store a subset of the application's database state locally. Now whenever you do any write operations to your data, you need to make an API call and also make sure the local redux state is kept in sync.
When you're embracing realtime everywhere, you avoid this, because any write operation automatically updates your realtime data, so you don't need to manually e.g. update your redux state. This allows you to skip a lot of the code that's needed for state management locally, so it saves a lot time and bugs (less code => less bugs).