Reputation: 2264
Why am i getting this error at the line below
return <div className=terra-ProgressGroup> {GroupProgressBar} </div>
41:27 error Parsing error: JSX value should be either an expression or a quoted JSX text
Upvotes: 4
Views: 12122
Reputation: 1
just put quotes around it, like this: <script src="IT WORKS!"></script>
Upvotes: 0
Reputation: 20129
If you are trying to use `template literals` , just wrapped them in {``}
return <div className={`now it ${works}`}> Hello World </div>
Upvotes: 9
Reputation: 816334
As the error message says, the value of an attribute must either be an expression
attr={...}
or quoted
attr="..."
Upvotes: 11