I hava problem about "template literals" when i use in react

29 Views Asked by At

when I start vscode Template literals working,Template literals working when i start. But "1s" after Template literals not working.Template literals not working

I installed ESLint and I make sure ESLint works properly. Help me please T_T

1

There are 1 best solutions below

0
egeer On

Your template literals need to use back tick `` and not single quote ''

`text ${variable}` // works
'text ${variable}' // will not work