react-string-template is simple string template with react
npm install react-string-templatenpm i --save react-string-template
`` jsx
renderNoMatch={()=>'not match'}
values={{
name: Harry Potter, // Don't forget write key
foo: 'fantasy',
bar: 'novels',
author: 'J. K. Rowling',
yeah: 1997,
}} >
{(children)=>{children}}
//Harry Potter is a series of fantasy novels written by British {author} J. K. Rowling in 1997.
`
` jsx
// add click event
values={{
charmName: (
key='patronus'
onClick={()=>alert('Patronus!')}>
Patronus
),
}} >
{(children)=>{children}}
`
` jsx
// render no Match
renderNoMatch={()=>'not match'} >
{(children)=>{children}}
//I am not match
`
If you don't need escape use {{escape}}`