JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 100
  • Score
    100M100P100Q69632F
  • License MIT

Password protect a react app.

Package Exports

  • react-app-protect

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-app-protect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-app-protect

Password protect a react app.

NPM JavaScript Style Guide

Install

npm install --save react-app-protect
yarn add react-app-protect

Usage

import React, { Component } from 'react'

import Protect from 'react-app-protect'
import 'react-app-protect/dist/index.css'

class App extends Component {
  render() {
    return (
      <Protect password="test">
        <div>Content</div>
      </Protect>
    )
  }
}

License

MIT © bay0