摘要: Learn how to use the ‘flattenProp’ higher order component to take a single object prop and spread each of its fields out as a prop. For example,we hav 阅读全文
posted @ 2017-05-15 15:13 Zhentiw 阅读(258) 评论(0) 推荐(0)
摘要: Learn how to use the ‘withProps’ higher order component to pre-fill a prop, unable to be overridden. withProps, take string as arguement for creating 阅读全文
posted @ 2017-05-15 03:42 Zhentiw 阅读(339) 评论(0) 推荐(0)
摘要: Learn how to use the 'mapProps' higher-order component to modify an existing component’s API (its props). 'mapProps' takes incoming props and changes 阅读全文
posted @ 2017-05-15 03:30 Zhentiw 阅读(281) 评论(0) 推荐(0)
摘要: Learn how to use the 'lifecycle' higher-order component to conveniently use hooks without using a class component. 阅读全文
posted @ 2017-05-15 03:06 Zhentiw 阅读(392) 评论(0) 推荐(0)