• This repository has been archived on 04/May/2020
  • Stars
    star
    284
  • Rank 145,616 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple validation mixin (HoC) for React.

react-validation-mixin

Simple validation library for React.

This library simply wraps your React Component, transferring it props containing the boilerplate to validate a React form.

react-validation-mixin aims to provide a low-level toolkit for React.Component validation, relying on existing validation libraries.

This library currently supports at least two strategies and the community is urged to expand the available strategies. Each strategy is responsible for the data validation and error message responses. A complete list of strategies can be found at the end of this page.

Users of the library are required to install and include the mixin and a chosen strategy.


View the Demo

Read the Documentation

Steps for migrating from 4.x


Install

Install mixin via npm OR yarn:

> npm install --save react-validation-mixin
> yarn add react-validation-mixin

Install validation strategy via npm OR yarn:

> npm install --save joi-validation-strategy
> yarn add joi-validation-strategy

Make sure you install the peer dependency Joi if using the joi-validation-strategy:

> npm install --save joi
> yarn add joi

Strategies

Current list of validation strategy implementations to choose from:


Please contribute suggestions, features, issues, and pull requests.

More Repositories

1

react-immutable-render-mixin

react pure render mixin for facebook/immutable-js library
JavaScript
275
star
2

refactoring-codemods

Refactoring support for JavaScript via jscodeshift codemods
JavaScript
79
star
3

react-display-name

utility to return a react components display name
JavaScript
59
star
4

atom-javascript-refactor

atom plugin that provides refactoring support for JavaScript
JavaScript
32
star
5

redux-pouchdb-store-enhancer

Redux PouchDB Enhancer to store actions locally, sync with remote CouchDB, and time travel by applying remote actions locally and then compute distributed nextState.
JavaScript
22
star
6

joi-validation-strategy

Joi validator for react-validation-mixin
JavaScript
9
star
7

redux-online-store-enhancer

Automatically detect if you are online or offline.
JavaScript
8
star
8

redux-peerjs-store-enhancer

Use PeerJS to easily distribute Redux actions to remote peers.
JavaScript
7
star
9

react-examples

React Examples
JavaScript
6
star
10

test-timebomb

💥 auto expire features in your code
JavaScript
5
star
11

dataflow-through-react

Gitbook for 2015 Connect js talk on dataflow through React
4
star
12

data-structures

CS Basics + Js Basics Conference Slides
JavaScript
3
star
13

docs-react-validation-mixin

gitbook documentation for react-validation-mixin
2
star
14

http-benchmark

Scriptable Http Benchmarking util for node
CoffeeScript
2
star
15

jurassix.github.io

1
star
16

my-create-react-app

Default application, built from Create React App, with Flow and redux wired up.
JavaScript
1
star
17

redux-action-enhancer-middleware

Middleware that provides an enhancing function to dispatched actions, with optional filtering to target only certain actions.
JavaScript
1
star