Week 5

State with useState

Render and commit lifecycle

Event Handling

Forms

Practice

Assignment

Front end Track

Content

Let’s get practical

Exercise 1: Interactive Flashcard Deck

Difficulty: Easy Concepts: useState, event handling, conditional rendering

Build a flashcard component that lets a user flip through a small deck of cards and reveal answers one at a time.

Requirements:

Hints:

Exercise 2: Live Character-Limited Textarea

Difficulty: Easy Concepts: Controlled inputs, onChange, derived state, conditional styling

Build a controlled textarea that enforces a character limit and gives the user live feedback as they type — similar to a social media post composer.

Requirements:

Hints:


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.