Skip to content

Commit

Permalink
Improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
potty committed Apr 4, 2021
1 parent 7d82b66 commit 8447b6e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<i>
<a {...props} />
</i>
)
}
const CustomLink = (props: LinkComponentProps) => {
return (
<i>
<a {...props} />
</i>
)
}

const SomeComponent = () => {
return (
<Anchorme linkComponent={CustomLink} target="_blank" rel="noreferrer noopener">
Lorem ipsum http://example.loc dolor sit amet
Expand Down

0 comments on commit 8447b6e

Please sign in to comment.