Comments (2)
Hey, thanks for your interest!
TouchSensor
— I would call it something likeTouchSupportSensor
. 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
andSpinner
could be added to the UI section.
from libreact.
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)
- v2
- MediaSensor
- <ErrorSnapshotBoundary>
- [question] how to consume libreact in TypeScript HOT 3
- [Question] How to use withViewport with withRouter ? HOT 2
- I'm getting a compile error using WindowWidthSensor HOT 3
- More Examples
- OutsideClick only works in the context of a single DOM tree HOT 7
- Forms HOT 1
- iframe HOT 1
- [Feature Request] React hooks support. HOT 1
- Error on OutsideClick with Styled component HOT 1
- The automated release is failing 🚨
- SizeSensor throws TypeError when child has style HOT 2
- The automated release is failing 🚨
- The automated release is failing 🚨 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libreact.