I can use a double and single quote to concatenate my dynamic variable but template string is cleaner. I got an unexpected token, any clue why?
...
return (<UserList id={subactions} key=`applications${query.status}` />)
...
I can use a double and single quote to concatenate my dynamic variable but template string is cleaner. I got an unexpected token, any clue why?
...
return (<UserList id={subactions} key=`applications${query.status}` />)
...
You need to change it to the code below.
return (<UserList id={subactions} key={ `applications${query.status}` } />)
key={'applications'+query.status}
work?key={`applications${query.status}`}
work?