react-basic-auth
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

React Basic Auth

A hassle free login system. Easy to implement.


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.

Package Sidebar

Install

npm i react-basic-auth

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

21.1 kB

Total Files

8

Last publish

Collaborators

  • shirjoy-bhuban