react-formal-bootstrap ===
npm install @slightlytyler/react-formal-bootstrapreact-formal-bootstrap
===
A react-bootstrap form input adapter for react-formal
``js
import Form from 'react-formal'
import types from 'react-formal-bootstrap';
Form.addInputTypes(types);
`
You can also use each input individually outside of the react-formal context by importing the
input from react-formal-bootstrap/lib, to take advantage of the value parsing logic not present in native inputs.
`js
import React from 'react';
import Form from 'react-formal';
import * as yup from 'yup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import FormGroup from 'react-formal-bootstrap/lib/FormGroup';
const schema = yup.object({
name: yup.string(),
age: yup.number(),
favoriteColor: yup.array(
yup.string()
)
})
function MyForm() {
return (