americanexpress / react-albus

✨ React component library for building declarative multi-step flows.
Apache License 2.0
1.1k stars 89 forks source link

feat(api)!: remove render callbacks #97

Closed ryhinchey closed 3 years ago

ryhinchey commented 3 years ago

BREAKING CHANGE: removing render callbacks in favor of function as child

Description

Given we not provide a hook, it's cleaner for the api to remove render props in favor of the existing function as child pattern. Several React libraries have removed/deprecated render props or encourage using hooks over render props.

React encourages function as child through the Context.Consumer api.

Types of Changes

What is the Impact to Developers Using react-albus?