diff --git a/README.md b/README.md index 4598b7c..73e7fb0 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,14 @@ This package provides a reactivity layer for Alpine 2.x. When you create a component that uses a value defined outside of it, you can modify the value from Alpine, but not vice versa: ```html -
+
Click count:
``` -Clicking the buttons **will** update `window.clickCount`. However when `window.clickCount` is modified outside of the component, Alpine won't notice, and won't re-render the DOM. +Clicking the buttons **will** update `window.clickCount`. However when `window.clickCount` is modified outside of the component, Alpine **won't** notice, and won't re-render the DOM. Only after something else triggers a re-render, Alpine will show the correct click count again. @@ -26,6 +26,8 @@ One difference between this package's solution and Vue's `reactive()` is that Al ## Demo +[View online](https://archtechx.github.io/alpine-reactive/demo.html) + ```html