this is my problem i hope there is a solution
./src/LineGraph.js
Syntax error: D:/programming/corona-tracker-app/covid-19-tracker/src/LineGraph.js: Unexpected token (88:12)
86 | return (
87 | <div>
> 88 | {data?.length > 0 && (
| ^
89 | <Line
90 | options={options}
91 | data={{
Based on you images of code, you handle null-safety (or having values) with a Typescript operator :
?.And when you define
dataobject usinguseStatein line 67, assigned an empty object.The
LineGraphcomponent ran and it rendered with an empty object, If you want to check ifdatahas values, this may helps you:So: