{"repo":"vueuse/vue-chemistry","free":true,"listed":false,"github":"https://github.com/vueuse/vue-chemistry","clone":"git clone https://github.com/vueuse/vue-chemistry.git","description":"Reactified JavaScript functions for Vue","language":"TypeScript","stars":414,"topics":["vue","composition-api","vueuse","reactivity","vue-composition-api"],"license":"MIT","category":"ui-components","readme_excerpt":"The science that deals with the properties, composition, and structure of states, the transformations they undergo during reactions. Reactified JavaScript functions for Vue, powered by reactify from VueUse. Reactified? What? In JavaScript, for most of the time, you are dealing with procedural functions. Which means after the calculation/transformation, the result won't know relationships with its sources, for example On the other hand, in Spreadsheets apps like Microsoft Excel or Google Sheets, formulas are always up-to-update whenever their source changes. Vue's reactivity system is a way to approach the reactiveness in JavaScript. In the Composition API, we are kinda mixing the procedural and reactivity together (which is good and flexible). But what it will be like to have a complete reactive developing experience? Introducing Vue Chemistry , a set of reactified JavaScript functions letting you enjoy the pure reactiveness! From the example above, now we can have: Cool, but, how is that possible? We are basically making functions accepting Ref as their arguments and then wrapper their result with computed . This makes them automatically collect dependency sources and re-evaluate when the sources get changed. Note that the ComputedRef is also a Ref which means the operations are chainable! An example for comparison: If you want to convert a normal function into a \"reactified\" one, you can use reactify() function. The source code can be found here (deadly simple!). Install Us","default_branch":null,"files":null,"tree":[],"storefront":"/r/vueuse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vueuse/vue-chemistry/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}