https://github.com/toriphes/vanilla-reactivity-system-example
Simple vanilla javascript reactivity system example
https://github.com/toriphes/vanilla-reactivity-system-example
example-code javascript reactivity vanilla-javascript vue
Last synced: about 2 months ago
JSON representation
Simple vanilla javascript reactivity system example
- Host: GitHub
- URL: https://github.com/toriphes/vanilla-reactivity-system-example
- Owner: toriphes
- Created: 2020-02-22T11:32:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-22T11:33:35.000Z (over 6 years ago)
- Last Synced: 2025-04-06T15:15:37.949Z (about 1 year ago)
- Topics: example-code, javascript, reactivity, vanilla-javascript, vue
- Language: HTML
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple vanilla reactivity system
_The code was inspired to the [vue 2 reactivity system](https://vuejs.org/v2/guide/reactivity.html)._
This respository wants to be the result of a didactic exercise with the aim of realizing a simple reactive system from scratch.
**Attention**: The code is just a minimal example to demostrate how a simple reactivity system works and it is not meant to be a sort of javascript library.
I will be very happy if this example can be useful for your learning of javascript and modern frontend framework concepts.
You can test the code in a browser launching the `index.html` file.
## Issues
- For semplicity this code works only with object literals
- The code use some untranspilled code suchas: `new Set()` and `arrow functions`. You must use a modern web browser or you get some javascript error.