UNPKG
react-adminlte-components
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
React Components that use AdminLTE theme
github.com/binhqd/reactjs-adminlte
binhqd/reactjs-adminlte
react-adminlte-components
/
routes
/
connectedSwitch.jsx
11 lines
(7 loc)
•
254 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{connect}
from
'react-redux'
;
import
{
Switch
}
from
'react-router-dom'
;
const
mapStateToProps
= state => {
return
{
location
: state.
routing
.
location
}; };
const
ConnectedSwitch
=
connect
(mapStateToProps)(
Switch
);
export
default
ConnectedSwitch
;