Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork82
Collection of useful React components
License
streamich/libreact
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
React standard library—must-have toolbox for any React project.
- LAUNCH STORYBOOK 🚀
- See documentation
- Most components implement
- Isomorphic - most components work in browser and on server (and some in
react-native).
npm ilibreact --save
Library is modular—you can import each component by its name.
import{mock}from'libreact/lib/mock';// orimport{mock}from'libreact/modules/mock';constMyComponent=mock();
- Introduction
- Dummies
mock()andloadable()—examplelazy()anddelayed()
- Inversion
- Sensors
<ActiveSensor>,withActive(), and@withActive<BatterySensor>,withBattery(), and@withBattery<ExitSensor>—example<FocusSensor>,withFocus(), and@withFocus<GeoLocationSensor>,withGeoLocation(), and@withGeoLocation<HoverSensor>,withHover(), and@withHover—example<IdleSensor>,withIdle(), and@withIdle<MediaDeviceSensor>,withMediaDevices(), and@withMediaDevices<MediaSensor>,withMedia(), and@withMedia<MotionSensor>,withMotion(), and@withMotion<MouseSensor>,withMouse(), and@withMouse—example<NetworkSensor>,withNetwork(), and@withNetwork<LightSensor>,withLight(), and@withLight<LocationSensor>,withLocation(), and@withLocation<OrientationSensor>,withOrientation(), and@withOrientation<ScratchSensor>,withScratch(), and@withScratch<ScrollSensor><SizeSensor>,withSize(), and@withSize—example<TouchSupportSensor><ViewportSensor>,withViewport(), and@withViewport<WindowScrollSensor>,withWindowScroll(), and@withWindowScroll<WindowSizeSensor>,withWindowSize(), and@withWindowSize
- Context
- Google Sign-in for Websites
<Provider>,<Consumer>,withContext(), and@withContext<Theme>,<Themed>,withTheme(), and@withTheme<CssVarsProvider>,<CssVars>,withCssVars(), and@withCssVars- Routing:
createRouter(),<Router>,<Route>,<Switch>,<Match>,<Link>, andgo() <Translations>,<Translate>,<T>,withT(), and@withT
- UI
- Animation
- Side Effects
- Boundaries
<BrowserOnly>,<ServerOnly>, and<ElectronOnly><ErrorBoundary>andwithErrorBoundary()<CacheBoundary>
- NEXT
- Other
This project exists thanks to all the people who contribute.
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Unlicense — public domain.
About
Collection of useful React components
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.
