Rescript bindings for ReactBootstrap
npm install @rescriptbr/react-bootstrapFirst you need to install react-bootstrap as their documentation.
Basically you'll need to run these commands:
``shwith npm
npm add react-bootstrap@next bootstrap@5.1.0
Then, you'll need to import
bootstrap styles into your app:`js
// App.jsimport "bootstrap/dist/css/bootstrap.min.css";
`Finally you can install this package running these commands:
`sh
with npm
npm add -D @rescript/react-bootstrapwith yarn
yarn add -D @rescript/react-bootstrap
`Examples
$3
`rescript
module Form = ReactBootstrap.Form
module Button = ReactBootstrap.Button
module Container = ReactBootstrap.Container@react.component
let make = () => {
{
Email->React.string}
{ Senha->React.string}
Acessar->React.string}
}
``