Skip to content

Commit 2b8d443

Browse files
authored
Update README.md
1 parent f88db32 commit 2b8d443

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ a validation library for [react-formstate](https://www.npmjs.com/package/react-f
1010

1111
## basic setup
1212

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

6565
## aliases
6666

67-
```jsx
67+
```es6
6868
export let aliases = [
6969
{ name: 'equals', alias: 'eq' },
7070
{ name: 'greaterThan', alias: 'gt' },
@@ -84,7 +84,7 @@ export let aliases = [
8484

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

87-
```jsx
87+
```es6
8888
module.exports = {
8989
email: '%1 must be an email address',
9090
equals: '%1 must equal %2',
@@ -106,7 +106,7 @@ module.exports = {
106106

107107
to provide your own:
108108

109-
```jsx
109+
```es6
110110
import { FormState } from 'react-formstate';
111111
import * as rfsv from 'react-formstate-validation';
112112
let validationAdapter = new rfsv.FormStateAdapter(

0 commit comments

Comments
 (0)