Skip to content

Link don't works #449

Open
Open
@joneldiablo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions