@fujia/hooks
v0.3.0
Published
An awesome library for React Hooks
Downloads
1
Readme
An awesome library for React Hooks.
English | 简体中文
Features
friendly
UI development process, the first thing to consider is how to make the components more user-friendly, so that users are comfortable with.
Artistic
Continued pursuit of the ultimate in aesthetics while maintaining component performance.
Efficient
During the code design process, we are trading-off to achieve the best balance between component reuse, business usage boundaries, and component usage specifications.
Extensible
Considering the business case differences, the code in the framework are scope-limited and easily overwritten.
Comprehensive
Out of the box, high-quality components that cover most business scenarios.
TypeScript friendly
All components are written in TypeScript. it's type friendly.
Installation
// npm
npm i @fujia/hooks
// yarn
yarn add @fujia/hooks
Examples
import React from 'react';
import ReactDOM from 'react-dom';
import { useWinSize } from '@fujia/hooks';
function App() {
const winSize = useWinSize();
return (
<Button btnType="primary" label="Hello World" />
);
}
ReactDOM.render(<App />, document.getElementById('root'));
Browser Support
| IE / Edge | Firefox | Chrome | Safari | Opera | Electron | | --------- | --------- | --------- | --------- | --------- | --------- | | Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions| last 2 versions
License
This project is MIT licensed