surevine / govuk-react-jsx

govuk-frontend compatible React components
https://govuk-react-jsx.netlify.app/
MIT License
3 stars 0 forks source link

Throw warnings / errors when required data is not passed #133

Open andymantell opened 2 years ago

andymantell commented 2 years ago

As mentioned in #131 - it's possible to invoke components without all the required data which can sometimes lead to undesirable effects.

We should look into throwing an error or logging a warning to the console in this situation. Perhaps #124 (type declarations) could help with this.