Guest User

Untitled

a guest
May 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. export const actionCreators = {
  2. update: (e: React.FocusEvent<HTMLInputElement> | undefined, i: number): AppThunkAction<KnownAction> => (dispatch, getState) => {
  3. let test = event;
  4. // Will put logic and api call in here and dispatch the proper action type
  5. }
  6. }
  7.  
  8. // Inside a function rendering each row in my form
  9. ...
  10. <input key={project.number} name={name} className='trackerCell' onBlur={(event) => { this.props.update(event, i) }} defaultValue={project.number}/>
  11.  
  12. requestProjects: (programNumber: number, programString: string): AppThunkAction<KnownAction> => (dispatch, getState) => {
Add Comment
Please, Sign In to add comment