Ghulam Hussain

Results 8 comments of Ghulam Hussain

It's works with version : 2.1.2 ```js //... import { useMobileOrientation } from 'react-device-detect'; function App() { const mobileOrientation = useMobileOrientation(); console.log( "Check in console ->", mobileOrientation ) //.. ```

Detect this way. ```js import { mobileVendor, mobileModel } from 'react-device-detect'; function App() { console.log( "Company ->", mobileVendor ) // Apple console.log( "Model ->", mobileModel ) // iPhone return (...

Don’t go so deep **block__elem1__elem2**, don’t try to mimic the DOM tree. see example of **event > event__detail** ``` ```

This is issue fixed for me with running `yarn install` First you run. `npm install` Make sure you have installed **cross-env** `install cross-env`

Open `package.json`, added following rules under rules line: ```javascript "rules": { "linebreak-style": 0, "global-require": 0, ... ``` for VScode users: click the option at the bottom-right of the window and...

**Wrapper for Select Prefix Custom Solution** ```js // InputGroupWithIcon.jsx const InputGroupWithIcon = (props) => { const { prefixIcon, children, className, style = { display: 'flex', alignItems: 'center' } } =...

Open `package.json`, added following rules under rules line: ```javascript "rules": { "linebreak-style": 0, "global-require": 0, ... ``` for VScode users: click the option at the bottom-right of the window and...