UNPKG

react-router

Version:

A complete routing library for React.js

13 lines (10 loc) 317 B
var URLStore = require('../stores/URLStore'); var makePath = require('./makePath'); /** * Transitions to the URL specified in the arguments by pushing * a new URL onto the history stack. */ function transitionTo(to, params, query) { URLStore.push(makePath(to, params, query)); } module.exports = transitionTo;