streamich / rx-use Goto Github PK
View Code? Open in Web Editor NEWRxJS DOM sensors
License: The Unlicense
RxJS DOM sensors
License: The Unlicense
Add observable that emits on media query state changes.
Use media query API to detect if user has selected light or dark mode.
darkTheme$
lightTheme$
colorScheme$
Use Battery API to create battery$
observable.
Create React hook which returns and indicator observable which signals when component was unmounted.
const MyComponent = () => {
const unmounted$ = useUnmounted();
useEffect(() => {
something$.pipe(
takeUntil(unmounted$)
);
}, []);
};
Observable which given a user screen breakpoint spec, emits the name of current. screen size.
Use web Gyroscope API to create gyroscope$()
observable.
gyroscope$({frequency: 60}).subscribe(() => {});
isLowEndExperience$
observable, same as here, but it should be an observable listening for network changes instead.prefers-reduced-motion
media uqery.Add operator that tracks moving average value over n last values.
onbeforeunload
event to fire when user tries to leave the page.Use Ambient Light Events API to create:
ambientLigth$
observable.ambientLight$
observable in darkMode$
observable to switch between modes depending on ambient light value.Utilities for easy creation of browser keyboard shortcuts. Useful links:
Observable that fires when user starts typing in the browser, but no input field is selected. Analogous to useStartTyping
hook.
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.