Fix Readonly<{}> State Errors in React TypeScript | CodeTrail