Skip to content

Instantly share code, notes, and snippets.

@kuanee
kuanee / example_form.jsx
Last active October 12, 2020 11:51
Using Joi Validation with redux-form
import createValidator from 'joi_redux_form.js';
import { reduxForm } from 'redux-form';
const schema = {
name: Joi.string().required(),
description: Joi.string().required(),
};
function ExampleForm(props) {
return (