nuejs / www Goto Github PK
View Code? Open in Web Editor NEWContent for nuejs.org
Content for nuejs.org
The FAQ states that Nue is like React, Svelte and SvelteKit in being written in plain JS and not TypeScript.
While the latter two have moved to JSDoc based type checking (using TypeScript, and from my understanding also for the internals and not just the public API surface like Nue currently does), React isn't using plain JavaScript but rather Flow - Facebook's statically typed JS variant. Every file annotated with @flow in a comment is using Flow syntax, which, like TypeScript, is a superset of JS that uses type annotations in a very similar way (note that it also allows for typing in comments but React isn't doing so - their source code can't run directly inside JS runtimes)
For an example (random file from react source that's using Flow annotation) see:
https://github.com/facebook/react/blob/a5fc797db14c6e05d4d5c4dbb22a0dd70d41f5d5/packages/react/src/ReactLazy.js#L45-L52
export type LazyComponent<T, P> = {
$$typeof: symbol | number,
_payload: P,
_init: (payload: P) => T,
};
function lazyInitializer<T>(payload: Payload<T>): T {
if (payload._status === Uninitialized) {
Hi thanks for the effort you put in this project! The philosophy behind it is certainly interesting for me.
While checking the todomvc demo, I've noticed 2 problems:
This gets fixed when you change view to filter Active
or Completed
items, or add a new item. Removing an item or making it done
doesn't affect the number.
I couldn't catch any outstanding part in the https://github.com/nuejs/www/blob/master/todomvc/todomvc-compact.nue that would cause this problem. So I thought this might be indicating a problem beyond this demo.
Maybe because of a file renaming? (todo-compact.nue -> todomvc-compact.nue)
Would love to contribute to add a Chinese translation if there is a plan for it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.