when I use the v3, I can use
const createMemoryHistory= require('react-router').createMemoryHistory;
createMemoryHistory.push(url) to make the router link to a url manually,
but now I update react-router to the v4, there is no "createMemoryHistory", so what can I do ? I also need to make the router link to a url manually, without <link>.
createMemoryHistory comes from the history library.
import { createMemoryHistory } from 'history'
Most helpful comment
createMemoryHistorycomes from thehistorylibrary.