These days I read some articles about job positions in web development and how we can divide our profession into so many different levels. And this is amazing! I have a WhatsApp group with some friends from college and it's so cool that every person is working with something different.
If you work with React, then probably you've already heard about recompose. It's awesome! Check it, when you have time. So, it's common for complexscomponents
or containers
you get a long file. And boooom! You could compose
inside other compose
.
// File 1
import { compose, withHandlers, withState } from 'recompose'
export default compose(
withState('fabeniIsCool', 'setFabeniCool', true),
withHandlers({
// ...
})
)
import { compose, lifecycle } from 'recompose'
import FabeniCompose from './FabeniCompose'
export default compose(
FabeniCompose,
componentDidMount() {
// ...
}
)
"Attitude is a little thing that makes a big difference." - Winston Churchill
- 📖 Business @ the Speed of Thought: Succeeding in the Digital Economy | 🏃 20%