<Switch >
<Route path="/updateSummary" component={UpdateSummary} />
<Route path="/updateEffort" component={UpdateEffort} />
</Switch>
I have to send state of parent component as a prop to UpdateSummary. i tried sending like below,
<Switch >
<Route path="/updateSummary" component={UpdateSummary
{...this.props}} />
<Route path="/updateEffort" component={UpdateEffort} />
</Switch>
I am getting error as below
ERROR in ./component/ts/edit.tsx
[tsl] ERROR in D:\DR\component\ts\edit.tsx(99,67)
TS1005: '}' expected.
ERROR in ./component/ts/edit.tsx
[tsl] ERROR in D:\DR\component\ts\edit.tsx(99,82)
TS1003: Identifier expected.
Thanks in advance