target / goalert

Open source on-call scheduling, automated escalations, and notifications so you never miss a critical alert
https://goalert.me
Apache License 2.0
2.26k stars 246 forks source link

ui/tech-debt: JSX.Element has been deprecated #3435

Open Forfold opened 1 year ago

Forfold commented 1 year ago

We'll need to rethink our component typings, as JSX as a whole has been deprecated in favor of React.JSX.

This is a good opportunity to decide if we want all of our components to be one of:

Screenshot 2023-11-08 at 8 45 37 AM

mastercactapus commented 1 year ago

I think ReactNode is the preferred way and what we intended JSX to be used for

Forfold commented 1 year ago

Agreed, I would be fine with moving towards ReactNode from the top down

Kamlesh72 commented 11 months ago

@Forfold is this issue beginner friendly?

Forfold commented 11 months ago

Yes and no. It doesn't require a ton of effort, but it's a bit of a spiderweb in that I've noticed if I flip certain files to ReactNode from JSX.Element it freaks out saying it's not expected. So I think we need to start with the components at the highest level

Kamlesh72 commented 11 months ago

Yes and no. It doesn't require a ton of effort, but it's a bit of a spiderweb in that I've noticed if I flip certain files to ReactNode from JSX.Element it freaks out saying it's not expected. So I think we need to start with the components at the highest level

Got it @Forfold. Seems moderate level. Waiting for your PR 😃