1.1.1 • Published 4 years ago

lbl-popups v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

react-popups

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save lbl-popups

Usage

// src/index.tsx

import React from 'react'
import ReactDOM from 'react-dom'
import { Popups } from 'lbl-popups'

function App() {
  return (
    <div>
      <Popups />
    </div>
  )
}

ReactDOM.render(<App />, document.getElementById('root'))

// Anywhere.txs
function Login(props: { title: string }) {
  return (
    <div>
      <h1>{props.title}</h1>
      <input />
      <input />
      <button>login</button>
    </div>
  )
}

const user = await Popups.open({
  el: Login,
  props: {
    title: 'Login',
  },
})

License

MIT ©

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago