適配PC or Mobile 端 - react-responsive
import MeadiaQuery from 'react-responsive';
export default class Root extends React.Component{
render(){
return (
<div>
<MeadiaQuery query='(min-device-width: 1224px)'>
<PCIndex/>
</MeadiaQuery>
<MeadiaQuery query='(max-device-width: 1224px)'>
<MobileIndex/>
</MeadiaQuery>
</div>
);
};
}