https://github.com/markandre13/react-with-toad-models
Experiment to combine React.js Views with toad.js Models
https://github.com/markandre13/react-with-toad-models
Last synced: about 1 year ago
JSON representation
Experiment to combine React.js Views with toad.js Models
- Host: GitHub
- URL: https://github.com/markandre13/react-with-toad-models
- Owner: markandre13
- License: agpl-3.0
- Created: 2021-05-02T16:00:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T16:58:53.000Z (about 5 years ago)
- Last Synced: 2025-02-05T01:51:14.700Z (over 1 year ago)
- Language: TypeScript
- Size: 2.24 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Experiment to combine React.js Views with toad.js Models
This experiment brings the [MVVM](https://en.wikipedia.org/wiki/Model–view–viewmodel) ViewModels from [toad.js](https://github.com/markandre13/toad.js)' to [React.js](https://reactjs.org).
* Apply Clean Architecture principles to your frontend by separating the View from the Business Domain Model.
* Insanely simplify your React code.
* Two-Way Binding
Much to my surprise, JSX allowed binding the Views directly to the Models with TypeScript providing typesafety at compile time and in VS Code.
The downside is that, compared to web components, the need to compile the JSX slows the UI development cycle down by 5s per iteration.
https://resthooks.io/docs/api/useresource