r/javascript • u/Kiwi_Taster • Oct 22 '19
Dead-Simple JavaScript Components w/o the overhead
https://medium.com/@patrickwees/flexible-javascript-components-w-o-the-overhead-b0c5c0dcb42e?source=friends_link&sk=99c4370a3ae8aa2c7f990401185240a3
1
Upvotes
1
u/Kiwi_Taster Oct 22 '19
This is different than server-side rendering. The library just provides the components, but they are still fully dynamic with events and behaviors that can be applied. Also jQuery is not a dependency.
The goal here was to create components that could be manipulated in the classic js fashion. State is already provided for free with js closures. Check out this example of a component with rich interactions: https://github.com/PatrickDesign/patchScriptUI/blob/master/src/components/loginForm.js