RECOMPOSE YOUR REACT YAUHENI NIKANOVICH
HOF ? HOC ? (High Order Function) (High Order Component)
HOF EXAMPLE
HOC EXAMPLE 4
RECOMPOSE Recompose is a React utility belt for function components and higher- order components.
.CODE 7
SUMMARY Unusable Bearable Usable
SUMMARY withState withHandlers
SUMMARY withStateHandlers
SUMMARY compose withState withHandlers
SUMMARY compose withState withHandlerslifecycle
SUMMARY compose withState withHandlers lifecycle withStateHandlers branch renderComponent mapProps withProps renderNothing pure withReducer
Q & A
SOURCES React: reactjs.org Recompose: github.com/acdlite/recompose THANK YOU! Vistula Web Warsaw regular#6 Yauheni Nikanovich :: zhenyanikon@gmail.com Presentation: github.com/yauheni-blr/vww-react-recompose