react-basic-auth
v1.2.0
Published
A basic login system without any third party package dependency.
Downloads
26
Maintainers
Readme
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.