CultureHQ / add-to-calendar

A small package for adding an event to a calendar.
https://engineering.culturehq.com/add-to-calendar/
MIT License
44 stars 26 forks source link

React 18: Missing `children` props #766

Open Avasam opened 2 years ago

Avasam commented 2 years ago

In React 18, the children prop is no longer part of the React.FC type by default and has to be explicitly added. image

pAntiporda commented 1 year ago

@Avasam did you find any solution/alternative to this? Having the same issue when upgraded to React 18 Next 13

Avasam commented 1 year ago

I haven"t touched or seen the relevant code in about a year. But I'd assume either // @ts-expect-error comment or I patched the library using patch-package.