In the render : function() of the component it is redundantly checked whether the fish key still exists in the fishes state. That's not a problem, just unnecessary. var isAvailable = fish && fish.status === 'available'; if(fish && isAvailable) {… // second check whether fish is defined
jomaar · 9y ago
Structured data for AI agents
Repository: wesbos/React-For-Beginners-Transcriptions. Description: A start to making this series accessible Stars: 17, Forks: 9. Open PRs: 0, open issues: 1. Last activity: 9y ago. Top contributors: wesbos.