refactor: useMobile update the width

This commit is contained in:
Tristan 2019-09-13 08:44:07 +08:00
parent 1ec168eb56
commit dca6098f0c

View File

@ -1,6 +1,6 @@
import { useState, useReducer, useEffect } from 'react';
const useMobile = (width = 411) => {
const useMobile = (width = 750) => {
const [isMobile, setIsMobile] = useState(window.innerWidth <= width);
console.log('mmmmmm');