An awesome library for React Hooks.
English | 简体中文
UI development process, the first thing to consider is how to make the components more user-friendly, so that users are comfortable with.
Continued pursuit of the ultimate in aesthetics while maintaining component performance.
During the code design process, we are trading-off to achieve the best balance between component reuse, business usage boundaries, and component usage specifications.
Considering the business case differences, the code in the framework are scope-limited and easily overwritten.
Out of the box, high-quality components that cover most business scenarios.
All components are written in TypeScript. it's type friendly.
// npm
npm i @fujia/hooks
// yarn
yarn add @fujia/hooks
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'));
IE / Edge | Firefox | Chrome | Safari | Opera | Electron |
---|---|---|---|---|---|
Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
This project is MIT licensed