diff --git a/README.md b/README.md
index dd372f7..fcff534 100644
--- a/README.md
+++ b/README.md
@@ -73,15 +73,15 @@ You can set custom link component that is rendered instead of default anchor ele
import React from 'react'
import { Anchorme, LinkComponentProps } from 'react-anchorme'
-const SomeComponent = () => {
- const CustomLink = (props: LinkComponentProps) => {
- return (
-
-
-
- )
- }
+const CustomLink = (props: LinkComponentProps) => {
+ return (
+
+
+
+ )
+}
+const SomeComponent = () => {
return (
Lorem ipsum http://example.loc dolor sit amet