Skip to content

Commit

Permalink
Update best-practices.md
Browse files Browse the repository at this point in the history
Example of import by yup modules
  • Loading branch information
Eduardo Diaz Ugarte committed Aug 12, 2021
1 parent 7fe4b1c commit cc40b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/tutorials/best-practices.md
Expand Up @@ -22,7 +22,7 @@ const schema = yup.object({
You should leverage your bundler's tree-shaking capabilities and only import what you need:

```js
import { object, string } as yup from 'yup';
import { object, string } from 'yup';

const schema = object({
email: string().email(),
Expand Down

0 comments on commit cc40b0b

Please sign in to comment.