Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrelogan authored Jun 24, 2016
1 parent f88db32 commit 2b8d443
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ a validation library for [react-formstate](https://www.npmjs.com/package/react-f

## basic setup

```jsx
```es6
import { FormState } from 'react-formstate';
import { validationAdapter } from 'react-formstate-validation';
validationAdapter.plugInto(FormState);
Expand Down Expand Up @@ -64,7 +64,7 @@ for details, see the [code](/index.es6). it's very clear i promise.

## aliases

```jsx
```es6
export let aliases = [
{ name: 'equals', alias: 'eq' },
{ name: 'greaterThan', alias: 'gt' },
Expand All @@ -84,7 +84,7 @@ export let aliases = [

default content from [/content/en-us/default.js](/content/en-us/default.js):

```jsx
```es6
module.exports = {
email: '%1 must be an email address',
equals: '%1 must equal %2',
Expand All @@ -106,7 +106,7 @@ module.exports = {

to provide your own:

```jsx
```es6
import { FormState } from 'react-formstate';
import * as rfsv from 'react-formstate-validation';
let validationAdapter = new rfsv.FormStateAdapter(
Expand Down

0 comments on commit 2b8d443

Please sign in to comment.