I have a case where I pass multiple properties to a component. The props come from wordpress, so I can't influence what exactly is passed - the values always come up with "null".
However, I would like that when "null" is passed, the defaultProp value is taken.
I need to solve this somehow via the component itself.... is there a way?
https://codesandbox.io/embed/proptypes-in-react-forked-g29oy?fontsize=14&hidenavigation=1&theme=dark