feat: add No.JS framework#321
Open
ErickXavier wants to merge 1 commit into
Open
Conversation
f74c8af to
a8ceffd
Compare
Add No.JS (https://no-js.dev), an HTML-first reactive framework, to the comparison set. - Register the framework in frameworks.ts (version + family) and add its logo - Author all 22 examples across reactivity, templating, lifecycle, component composition, form input and webapp features using idiomatic No.JS directives (state, bind, computed, each, if/else-if/else, model, ref/$refs, use/slot, trigger events, store, declarative get) - Add a CodeSandbox static playground link (No.JS runs from a single CDN script) - Regenerate the README progression table
a8ceffd to
2c36363
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds No.JS to the comparison set.
No.JS is an HTML-first reactive framework: you build dynamic UIs with HTML attributes only — no JS files, no build step, no virtual DOM. A single
<script src="https://cdn.no-js.dev/"></script>boots the page and directives on plain elements drive reactivity, so it fits the "syntax by example" format well and offers a genuinely different point of comparison from the JS-centric frameworks already listed.What's included
frameworks.ts(frameworkVersions+frameworks).staticplayground generator inbuild/lib/playgroundUrlByFramework.ts, mirroring the existing Alpine approach (both are CDN-script frameworks). The render-app example ships a full HTML document, so the generator skips the boilerplate wrapper in that case.static/framework/nojs.svg.Directives showcased
Each example uses the idiomatic No.JS directive for that concept:
state/computed+expr(reactivity),each/if/else-if/else(templating),ref+$refs(dom-ref),on:mounted/on:unmounted(lifecycle),use+var/<slot>(composition),trigger(emit to parent),store+$store(context),model(two-way form binding), and declarativeget+as+loading/error(data fetching).Notes
*-vs-nojs) render with the logo and title.