Introduction
React Simple Dialogs
Beautiful dialogs with a simple usage. No unnecessary settings, native-like usage, simple. You can make it work in less than 10 seconds!
Instalation
# npm
npm install react-simple-dialogs
# yarn
yarn add react-simple-dialogs
# pnpm
pnpm add react-simple-dialogs
Container
In order to correctly render the dialogs, you must place the SimpleDialogContainer
near to your root component.
Example
import React from 'react'
import { SimpleDialogContainer, simpleAlert } from 'react-simple-dialogs'
function App() {
const alert = () => simpleAlert('Easy peasy lemon squeezy!')
return (
<div>
<button onClick={alert}>Alert!</button>
<SimpleDialogContainer />
</div>
)
}