A simple react modal component
yarn add react-modal-view
import Modal from 'react-modal-view'
import ReactDOM from 'react-dom'
import React, { Component } from 'react'
class TestComponent extends Component {
render () {
return (
<div>
<Modal visible={true}>
<h2>Hello from inside your modal</h2>
<p>This is a paragraph.</p>
</Modal>
</div>
)
}
}
ReactDOM.render(
<TestComponent />,
document.getElementById('root')
)
Uses styled-components 💅 for the base styling.
yarn
yarn dev
yarn test
yarn
yarn build
npm login
npm version patch
git add -A
git push origin master
npm publish