Your question is React Typewriter with Fetched Text. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Implement a React component that fetches a JSON payload from a secure HTTP endpoint and renders a text field one character at a time. The component must support configurable typing delay in milliseconds and expose animation controls for start, pause, resume, and reset. Return a component or hook-based implementation that handles loading, fetch failure, timer cleanup, and repeated control actions correctly.
def simulate_typewriter(text, delay, actions):