Skip to content

Commit 77d0d55

Browse files
authored
Update README.md
1 parent 41fe8ef commit 77d0d55

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ const password = (value, props, components) => {
7373
That's it. We can now use it in our React components:
7474

7575
```javascript
76-
import Form from 'react-validation/components/form';
77-
import Input from 'react-validation/components/input';
76+
import Form from 'react-validation/build/form';
77+
import Input from 'react-validation/build/input';
7878
import React, { Component } from 'react';
7979

8080
export default class Login extends Component {
@@ -193,9 +193,7 @@ export default class Comment extends Component {
193193

194194
react-validations also provides HOC (High Order Component) for each component. That made to have an ability to define own render logic, use mixed props, etc.
195195
```javascript
196-
import form from 'react-validation/hocs/form';
197-
import control from 'react-validation/hocs/control';
198-
import button from 'react-validation/hocs/button';
196+
import { form, control, button } from 'react-validation;
199197
200198
// Define own Form component
201199
const Form = ({ getValues, validate, showError, hideError, children, ...props }) => ( // destruct non-valid props
@@ -290,4 +288,4 @@ A wrapper around the native ```select```. Like ```Input```, it accepts a ```vali
290288
Button
291289
```
292290

293-
A wrapper around the native ```button```. React-validation disables (adds ```disabled``` prop) the button on error occurrences.
291+
A wrapper around the native ```button```. React-validation disables (adds ```disabled``` prop) the button on error occurrences.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy