0.0.7-alpha.0 • Published 5 years ago

react-cheapauth v0.0.7-alpha.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

react-cheapauth

react-cheapauth [npm:version](https://www.npmjs.com/package/react-cheapauth

Prepare

Should add react-cheapauth into current project using by the npm or yarn.

yarn add react-cheapauth
# npm i react-cheapauth

Usage

Example of use in the below.

import Cheapauth from 'vue-cheapauth';
import YourAppRoot from '...';

export default = () => {
  return (
    <Cheapauth
      password={process.env.LOGIN_PASSWORD}
      title="Authentication"
      submitLabel="Login"
    >
    </Cheapauth>
  )
}

Edit @example/react-cheapauth

Properties

The component Cheapauth is required three properties password, title and submitLabel. title and submitLabel is just become to the text of title and button of authentication form. password is used for comparing that an user input one.