Monday, January 30, 2017

ReactJS does not support variable interpolation inside of quotes

Beware, in ReactJS, these two things are different:

<li key={i}>

and
<li key="{i}">


The former is correct, the later is probably going to lead to  a syntax error:)

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...