Coder Social home page Coder Social logo

Comments (2)

Frikki avatar Frikki commented on June 2, 2024

@acusti Good catch.

from todomvc-cycle.

staltz avatar staltz commented on June 2, 2024

This has been discussed before #14.

propHook needs this because that's how hooks work in virtual-dom. TBH propHook is a util. Could have been a library, then you wouldn't see the this at all. It's a virtual-dom thing, not a Cycle.js thing. I know virtual-dom is part of Cycle DOM, but still, it's just one driver. Perhaps if we build a new Cycle DOM based on some other virtual DOM library that has a thisless API, then we can achieve that.

The point here is: as far as Cycle.js and RxJS is concerned, ignoring some corner cases in some drivers, there are no this.

I'll update the docs page to remove the sentence "See it for yourself, this cannot be found in Cycle.js TodoMVC.". But that doesn't mean much in my opinion. You still rarely or never see a this. What matters most, you don't need to think or reason about this.

from todomvc-cycle.

Related Issues (20)

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.