react-formular icon indicating copy to clipboard operation
react-formular copied to clipboard

validation framework adapters

Open theluk opened this issue 7 years ago • 0 comments

currently validation might be accomplished via middlewares.

<Middleware use={(data, update, fail) => ...} />

My idea is to have some sub packages (like react-formular-{framework}) that can be imported. Some of the famous ones would be yup and could be implemented as

import { schema } from './my-yup-schema'
import Validator from 'react-formular-yup'

<Validator schema={ schema } />

theluk avatar Jun 19 '18 14:06 theluk