Skip to content

Commit ffae1fb

Browse files
authored
Update README.md
Update example code for correctly importing `@hookform/error-message` module.
1 parent 54d93db commit ffae1fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $ npm install @hookform/error-message
3333
```jsx
3434
import React from 'react';
3535
import { useForm } from 'react-hook-form';
36-
import { ErrorMessage } from 'hookform@error-message';
36+
import { ErrorMessage } from '@hookform/error-message';
3737

3838
export default function App() {
3939
const { register, errors, handleSubmit } = useForm();

0 commit comments

Comments
 (0)