|
|
|
|
|
by zodiac
3362 days ago
|
|
It really isn't a template language as the term is commonly used. If you feel so strongly about the weird syntax you can write equivalent code in javascript syntax instead. return React.createElement(
button,
{ className: "square", onClick: () => this.setState({value: 'X'}) },
this.state.value
);
If you think your code is written in a template language, then the code I just wrote must also be written in a template language (with different syntax). |
|
I want to write this, and have it actually be HTML:
I like HTML.