looking at a react project, I found that the route jump is done in the following way, rather than through < Link to= "/ about" > About < / Link >
, which makes me feel more concise through link to
.
I would like to ask what are the differences between the two approaches and what are their advantages and disadvantages.
onClick (item) {
dispatch({
"type": "@@router/CALL_HISTORY_METHOD",
"payload": {
"method": "push",
"args": [
{"pathname": item.path}
]
}
})
}