typescript-cheatsheets/react

Missing return type

AdamZajler opened this issue · 1 comments

https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/error_boundaries/

public componentDidCatch(error: Error, errorInfo: ErrorInfo): void
public render(): React.ReactNode

Hey @AdamZajler!

Return types are not required—it's a matter of personal preferences.