Let’s take a simple code component and smarten it up to clearly see which code changes are needed.Version A: Made green by a prop Version B: Greenness is a state What is changed? Version C: The prop updates the state What is changed? Version D: The state is shared What is changed? Event handler property […]