Created
July 18, 2018 14:58
-
-
Save PaulieScanlon/b4150b9c32540ec29a9218e18ff5a47a to your computer and use it in GitHub Desktop.
Conditional Render of ButtonAction component as <button> or <a>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage can then be:
<ButtonAction text="Button Action" onClick={() => clickHandler()} />
or
<ButtonAction text="Button Action" link="tel:+447708524030" />