migrate App.jsx to mountwithContext

This commit is contained in:
John Mitchell
2019-04-18 13:10:17 -04:00
parent e1333f5e00
commit 5030eb35b6
2 changed files with 38 additions and 75 deletions

View File

@@ -45,6 +45,12 @@ const defaultContexts = {
push: () => {},
replace: () => {},
createHref: () => {},
location: {
hash: '',
pathname: '',
search: '',
state: '',
}
},
route: {
location: {
@@ -58,7 +64,7 @@ const defaultContexts = {
isExact: false,
path: '',
url: '',
},
}
},
toJSON: () => '/router/',
},