react typescript property does not exist on readonly 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}