- Simple and lightweight , optimized DOM
- Vanilla Friendly optional(querySelector,getElementById)
- Easier to use and learn
- CDN Link or NPM Package options
- Module based or Global usage
- Components , Props and Slots...
- Lifecycle hooks(createEffect,onEffect,onSignal,onMount,onUnmount)
- JSX like Template Literals | example :
<Component prop='text'/>
- Proxy Based Reactive States and Callbacks,Computed States
- Two way data binding
- Integrated Store and Easiest State Management
- Dynamic Attributes and linked with variables
- Scoped Styles
<style scoped>...</style>
- Nested Components , Nested Effects , Memo
- Vite-Template : https://github.com/HasanHuseyinDemir/Vite-AnchorsJS
- Npm : https://www.npmjs.com/package/anchorsjs
# Recomended For Beginners ; Replit and Codepen Examples
> https://replit.com/@HasanHuseyinDem
> https://codepen.io/collection/rxvqgG
Reactive Storage
"es6-string-jsx" and "es6-string-html"
"/*jsx*/ or /*html*/"
for highlighting html string
let page=html/*jsx*/`<div>Highlighted!</div>`
import {html,createStore,createElement,RegisterComponent} from "https://unpkg.com/anchorsjs@1.6.0/anchors.min.mjs"
export {html,createStore,createElement,RegisterComponent}
<script src="https://unpkg.com/anchorsjs@1.6.0/anchors.min.js"></script>
npm i anchorsjs