トップに戻る
tags
npm install react-device-detect
import { isMobile } from "react-device-detect" {isMobile ? ( <h1>スマホ</h1> ) : ( <h1>pc</h1> ) }
edit