Property ‘XYZ’ does not exist on type ‘Readonly & Readonly’
You need to define what your props and state will look like using an interface and TypeScript’s generic implementation of React.Component import React, {Component} from ‘react’; import “./Recipe.css”; interface IRecipeProps { ingredients?: string[]; title?: string; img?: string; instructions?: string; } interface IRecipeState { } class Recipe extends Component<IRecipeProps, IRecipeState> { render() { const ingredients = … Read more