Giter Site home page Giter Site logo

www's People

Contributors

chihabhajji avatar dvnrsn avatar ifox avatar kielnino avatar krentrox avatar markliuyuxiang avatar nobkd avatar riencoertjens avatar seneca avatar swoutch avatar tec avatar tipiirai avatar tomecko avatar yangbinji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

www's Issues

React isn't using plain JS as FAQ claims

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) {

A few problems with todomvc demo

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:

  1. "x items left" counter in the footer gets out of sync with the actual number of items.

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.

  1. The "source code" link in the page footer is directed to a 404.

Maybe because of a file renaming? (todo-compact.nue -> todomvc-compact.nue)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.