Open
Description
Hi, I'm using Link component to navigate but not working, the uri change, the path change but the view do nothing, I'm using react 17+
import React from 'react';
import { Link } from '@reach/router';
export default class TestBusinessView extends React.Component {
onClick = (e) => {
e.preventDefault();
navigate(e.target.href);
}
render() {
const { uri } = this.props;
return <div>
<div><Link to={`${uri}/parent-enterprise`} onClick={this.onClick}>Parent enterprise</Link></div>
</div>;
}
}
Metadata
Assignees
Labels
No labels