This is to allow the button prop to accept anything that can be rendered: numbers, strings, elements or an array (or fragment) containing these types in order to prevent failed prop type warnings in the scenario the developer would like to pass in those types.
Thanks for your work on react-smartbanner Patrick!
Coverage remained the same at 82.692% when pulling 733b04085f33f3a56bab38befc03380ac8d31aa7 on kevin-miles:master into 52f615926cf45d4968128ac3dd549d0effb72af5 on patw0929:master.
This is to allow the button prop to accept anything that can be rendered: numbers, strings, elements or an array (or fragment) containing these types in order to prevent failed prop type warnings in the scenario the developer would like to pass in those types.
Thanks for your work on react-smartbanner Patrick!