Skip to content

Instantly share code, notes, and snippets.

@srph
Created March 31, 2016 23:33
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save srph/020b5c02dd489f30bfc59138b7c39b53 to your computer and use it in GitHub Desktop.
Save srph/020b5c02dd489f30bfc59138b7c39b53 to your computer and use it in GitHub Desktop.
react: dummy link (useful for non-link anchor elements / aka `href="#"`)
@TheFullResolution
Copy link

TheFullResolution commented Nov 6, 2016

This is great.. Thanks :) although I had to change to const DummyLink = ({onClick, children, props}) => otherwise Webpack was not happy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment