1.2.0 • Published 11 months ago

react-basic-auth v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Build by Shirjoy Bhuban 👨‍🍳

Features

  • 🔥 Easy to implement

  • 🔩 No third party package needed

  • Persist State

  • 🕊 Lightweight

  • Accessible

Installation

With yarn

yarn add react-basic-auth

With NPM

npm install react-basic-auth

user

Getting Started

Add the AuthComponent anywhere to your app. It will automatically take care of user login!

import AuthComponent from "rect-basic-auth";
import 'react-basic-auth/dist/index.css'


const MyComponent = () => {

  return (

    <div>

      <AuthComponent/>

    </div>

  );

};

Support

react-basic-auth supports typescript. We used tsup as our typescript bundler. For some standalone feature we choose tsup over Babel, webpack, or TypeScript's own compiler (tsc). Tsup is very lightweight and tsup uses the incredible speed of esbuild. Tsup is easy to config. Tree shaking, minification, code splitting are some feature of tsup.

For state management we used context api and did not include any third party package. This makes our package lightweight.

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago

0.0.1

11 months ago