score:0

export default class App extends Component {

  onCircleClick(event) {

    event.preventDefault();
    console.log('Inside on circle click');
    window.location='/nextpage';
  }

 render() {
 return (
 <div>
   <h1> Testing svg tag </h1>
   <svg>
     <circle onClick= {this.onCircleClick} cx="50" cy="50" r="40" fill="red"/>
     <circle onClick= {this.onCircleClick} cx="150" cy="50" r="40" fill="yellow" />
   </svg>
</div>
);
}
}

score:0

history.pushState(name, title, "nextpage");

Related Query

More Query from same tag