Skip to content

Commit f18492b

Browse files
committed
Change curly brackets to quotes (single)
Since the expression is evaluated the curly brackets would literally mean that a variable is expected with the name `top` (for example). This was breaking my app.
1 parent 1cb2589 commit f18492b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: example/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Test = React.createClass({
7272
<p className="label">Code</p>
7373
<hr></hr>
7474
<p>{"<a data-tip='React-tooltip'>( ◕‿‿◕ )</a>"}</p>
75-
<p>{"<ReactTooltip place={"+place+"} type={"+type+"} effect={"+effect+"}/>"}</p>
75+
<p>{"<ReactTooltip place='"+place+"' type='"+type+"' effect='"+effect+"'/>"}</p>
7676
</div>
7777
</pre>
7878
</div>

0 commit comments

Comments
 (0)