Day 21 Intern

< 1 min read    24 May 2017    

Read up thunk, discuss about middleware, componentWillMount, will Unmount, lifecycles. Using redux-thunk, we can call functions as actions when calling vai store.dispatch.

See reddit API waala.

17:00 One of the things to be kept in mind while desigining react is not to focus on using document.getElementbyId. This is only supported in chrome based browsers, so will not be effective for mobile and other devices.

We can monitor change in input when ‘Enter’ is pressed, [onKeyPress], but it is better to do that on ‘onchange’, this will change our state. Although there is rerender involved, it is of the order of milliseconds, so can ignore.

Some rights reserved.

Leave a Comment