Knowledge Explorer Step 4: Remembering the Query

Give the search bar memory. Hold the current query in state in whichever component renders both the input and the results, and display it live beneath the field so you can watch it change as you type. Nothing searches anything yet. The point is to decide where the state lives, and the answer is the closest component that renders everything which needs it. Getting that wrong now means moving it later, so think about it before you write it.

SANKOFA SANDBOX
loading editor…
Your turn → Work through it step by step. This is a piece of the course project, not a throwaway exercise.

Built it in both languages?

Mark it done once your Python and JavaScript versions both run correctly. Honesty here is what makes the dashboard useful to you.

← BackNext: Module 5: Events and Forms →