Guest User

Untitled

a guest
Jun 23rd, 2021
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react'
  2. import { DateRangePicker } from 'rsuite'
  3. import {useFormik} from 'formik'
  4.  
  5. export const Calendar = props => {
  6.     const form = useFormik({
  7.         initialValues: {
  8.             date: '',
  9.         },
  10.         onSubmit: data => {
  11.             console.log(data)
  12.         },
  13.     })
  14.     return <>
  15.         <form onSubmit={form.handleSubmit}>
  16.             <DateRangePicker size='md' onChange={form.setFieldValue} />
  17.         </form>
  18.     </>
  19. }
  20.  
RAW Paste Data