property does not exist on type readonly state react code example
Example: Property 'val' does not exist on type 'Readonly<{}>
class App extends React.component<{},any>{ //your code}
class App extends React.component<{},any>{ //your code}