@guoyunhe/react-auth
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

@guoyunhe/react-auth

React components & hooks for authentication. To be used with axios and react-router-dom.

Install

npm i @guoyunhe/react-auth axios react-router-dom

Usage

import { BrowserRouter, Route, Switch } from 'react-router-dom'; // v6
import { AuthProvider } from '@guoyunhe/react-auth';

const App = () => {
  return;
  <BrowserRouter>
    <AuthProvider>
      <Switch>
        <Route></Route>
      </Switch>
    </AuthProvider>
  </BrowserRouter>;
};

Package Sidebar

Install

npm i @guoyunhe/react-auth

Weekly Downloads

2

Version

2.3.0

License

GPL-3.0

Unpacked Size

47.9 kB

Total Files

7

Last publish

Collaborators

  • guoyunhe