react-anchorme icon indicating copy to clipboard operation
react-anchorme copied to clipboard

Mixing inner text and parameters causes error

Open jjl-genemod opened this issue 5 years ago • 0 comments

Great library! One issue I'm seeing is that if you have both normal text and bracketed inner parameters passed as children the component throws various errors.

Example 1: <Anchorme target="_blank" rel="noopener">testa.com {"testb.com"}</Anchorme>

Example 2, note the spaces around the brackets: <Anchorme target="_blank" rel="noopener"> {"testa.com"} </Anchorme>

jjl-genemod avatar Feb 04 '21 19:02 jjl-genemod