Giter Site home page Giter Site logo

Component viabilities about libreact HOT 2 OPEN

mike-engel avatar mike-engel commented on May 17, 2024
Component viabilities

from libreact.

Comments (2)

streamich avatar streamich commented on May 17, 2024

Hey, thanks for your interest!

  • TouchSensor — I would call it something like TouchSupportSensor. The question is if it has to be a render-prop, if the boolean value of it does not change over time or depending on where it is rendered in the React tree, it could simply be a plain JavaScript function.
  • OSOnly — similar as previous, if the value of this component does not change over time or depending where it is rendered it could be just a plain function.
  • ReducedMotionSensor — this sound something that could be done by user of this lib instead.
  • Control statements — I was thinking about including them, I don't think those are terribly useful but for the sake of completeness we could include those in this lib.
  • Tabs and Spinner could be added to the UI section.

from libreact.

mike-engel avatar mike-engel commented on May 17, 2024

Thinking about TouchSupportSensor and OSOnly, I think they could be both a function and a component. I prefer HOCs when writing my React code, personally, so I could include both.

As for control statements, similar to above, I personally find them useful as HOCs for composition, but they don't need to be in this library.

Thanks! I'll start on a PR :)

from libreact.

Related Issues (17)

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.