User7354632781
User7354632781

Reputation: 2264

Parsing error: JSX value should be either an expression or a quoted JSX text

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

Answers (3)

ROKINAXTREME
ROKINAXTREME

Reputation: 1

just put quotes around it, like this: <script src="IT WORKS!"></script>

Upvotes: 0

Juanma Menendez
Juanma Menendez

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

Felix Kling
Felix Kling

Reputation: 816334

As the error message says, the value of an attribute must either be an expression

attr={...}

or quoted

attr="..."

Official documentation.

Upvotes: 11

Related Questions