Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const actionCreators = {
- update: (e: React.FocusEvent<HTMLInputElement> | undefined, i: number): AppThunkAction<KnownAction> => (dispatch, getState) => {
- let test = event;
- // Will put logic and api call in here and dispatch the proper action type
- }
- }
- // Inside a function rendering each row in my form
- ...
- <input key={project.number} name={name} className='trackerCell' onBlur={(event) => { this.props.update(event, i) }} defaultValue={project.number}/>
- requestProjects: (programNumber: number, programString: string): AppThunkAction<KnownAction> => (dispatch, getState) => {
Add Comment
Please, Sign In to add comment