Skip to content

Commit

Permalink
Clarifying that template strings need to be used, not normal strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrantly committed Jan 21, 2015
1 parent 450eb9c commit a8ff4b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ module.exports = {

ts-jsx-loader defines a fake API on React called React.jsx(). You should
reference the included `react-jsx.d.ts` definition file for IDE support. This
API accepts either a string or nothing. You can then create JSX as a string
or within multiline comments.
API accepts either a string or nothing. You can then create JSX as a
template string or within multiline comments.

```
///<reference path="path/to/react-jsx.d.ts"/>
Expand All @@ -46,7 +46,7 @@ React.render(React.jsx(/*
</div>
*/), document.body)
// or if you're using TypeScript 1.4 or above
// or if you're using TypeScript 1.4 or above with template strings
React.render(React.jsx(`
<div>
Expand Down

0 comments on commit a8ff4b1

Please sign in to comment.