TODO: Let's make this available as a helper from React Server core.
function addOnClickHandler(a, {reuseDom, bundleData}) {
	a.onclick = function (e) {
		// See Link.jsx in react-server/core/Link
		if (!e.metaKey) {
			e.preventDefault();
			e.stopPropagation();
			navigateTo(a.getAttribute('href'), {reuseDom, bundleData});
		} else {
			// do normal browser navigate
		}
	}
}