An open API service indexing awesome lists of open source software.

https://github.com/gjc9620/react-string-template

🚀 simple string template with react! 🚀
https://github.com/gjc9620/react-string-template

es6 javascript react string-template

Last synced: 6 months ago
JSON representation

🚀 simple string template with react! 🚀

Awesome Lists containing this project

README

          

# react-string-template
react-string-template is simple string template with react

## install
`npm i --save react-string-template`

``` jsx
'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
alert('Patronus!')}>
Patronus

),
}} >
{(children)=>

{children}
}

```

``` jsx
// render no Match
'not match'} >
{(children)=>

{children}
}

//I am not match

```

If you don't need escape use `{{escape}}`