everytime I code like this ${row.name}, I get this error "eslint.org/docs/rules/no-template-curly-in-string Unexpected template string expression".
Any help?
everytime I code like this ${row.name}, I get this error "eslint.org/docs/rules/no-template-curly-in-string Unexpected template string expression". Any help? |
|||||||||
|
ES6 template strings should be used with backquotes, not single quotes. Replace this :
With this :
And here is the ESLint example as requested in the comments : http://eslint.org/docs/rules/no-template-curly-in-string#examples |
||||
|