Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parity with recompose #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Parity with recompose #24

wants to merge 4 commits into from

Conversation

pfgray
Copy link
Owner

@pfgray pfgray commented Apr 25, 2019

Addresses #23

Progress:

hoc explanation
mapProps() this is just cc.map(a => b)
withProps() this is just CC.of({})
🤔 withPropsOnChange()
withHandlers()
defaultProps() is just CC.of({})
renameProp() is just cc.map(a => b)
renameProps() is just cc.map(a => b)
flattenProp() is just cc.map(a => b)
withState()
🤔 withStateHandlers()
withReducer()
branch() is just fork()
renderComponent() is just fork(true ), maybe could add a special case?
renderNothing() is just fork(true, () => null
🚧 shouldUpdate()
pure() is just pure() … not sure this is a good one to promote, though?
onlyUpdateForKeys() is just pure()
🤷‍♀️ onlyUpdateForPropTypes()
withContext()
getContext()
lifecycle() withLifecycle()
😧 toClass()
toRenderProps()
fromRenderProps()

@pfgray pfgray force-pushed the parity_with_recompose branch from f05ecf2 to b082d42 Compare April 28, 2019 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant