javascript - React: How do you intentionally add an onclick property with a string value? -


i need use regular html onclick attribute , not react's onclick property because want add google analytics track outbound links.

if use onclick property function property, ga not defined, if can make value string, shouldn't throw errors.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -