Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuti committed Oct 22, 2019
1 parent 3d36f47 commit 75b0a34
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@ use case is similar to using String.prototype.replace except for React.
# Usage

```
import t from 'retemplate'
import t from '@nobuti/retemplate'
render() { return <div>{template("hola {mundo} cruel {mundo} foo {wadus}", { mundo: () =>
"<span>mundo</span>", wadus: "foo" })}</div> }
render() {
return (
<div>
{template("hola {mundo} cruel {mundo} foo {wadus}", {
mundo: () => <span>mundo</span>,
wadus: "foo"
})}
</div>
)
}
```

0 comments on commit 75b0a34

Please sign in to comment.