Skip to main content
100%

Gist f4490dceceab7519aec2f3f481752369

✓ Published0🌍 Public
Aamortka
Last edited Feb 13, 2018
Created on Feb 13, 2018

This React example demonstrates a todo-list input form that dispatches an asynchronous action when submitted. The component uses `react-redux`’s `connect` to access the `dispatch` function, and calls `addTodoAsync` (an action creator) with the trimmed input value, logging `'done!'` to the console once the promise resolves. The form prevents default submission, clears the input after dispatch, and disables adding empty entries. The code shows the pattern of binding a Redux action to a user interface event, though it does not render any visualization or charting logic.

AI-generated description

Similar vizzes