Answer the question
In order to leave comments, you need to log in
How to make a Link from a function in react?
finishGames() {
}
Answer the question
In order to leave comments, you need to log in
Something like this
import React, { Сomponent } from 'react'
import { withRouter } from 'react-rouer-dom'
class Game extends Component {
constructor(props) {
super(props)
}
finishGames = () => {
this.props.history.push("/finish")
}
render() {...}
}
export default withRouter(Game)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question