Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
coston authored Sep 16, 2020
1 parent 0716efd commit 9de91ee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,21 @@ Example Case:
</Obfuscate>
```

## Children
By default, `children` are reversed in the dom. The `obfuscateChildren` prop set will disabled this functionality when set to `false`. If the child is an object, like html elements are, it will be rendered normally.

##### Example Use Case
```js
<Obfuscate email="hello@coston.io" aria-label="Email Me">
<svg width={24} height={21}>
<path
fill="#000"
d="M12 12.713L.0 3h23.97L12 12.713zm0 2.574L0 5.562V21h24V5"
/>
</svg>
</Obfuscate>
```

## Contributors

react-obfuscate is awesome thanks to these community members:
Expand Down

0 comments on commit 9de91ee

Please sign in to comment.