pulled changes from develop -- converted ManagedUIContext to a function (non-arrow) with explicit React.ReactNode props -- url to article explaining benefits of this revised configuration included in a comment (compone

nts/context, line 185)
This commit is contained in:
Andrew Ross 2020-12-12 13:47:10 -06:00
parent 81d264a57d
commit 748f05344c

View File

@ -182,7 +182,7 @@ interface ManagedUIContextProps {
children: React.ReactNode
}
// please see https://medium.com/variant-as/a-better-way-to-type-react-components-9a6460a1d4b7
// please see for benefits of this configuretaion https://medium.com/variant-as/a-better-way-to-type-react-components-9a6460a1d4b7
export function ManagedUIContext(props: ManagedUIContextProps) {
const { children } = props
return (