You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Kinark, I am new to Open-Source so correct me if i am wrong, But can't we Use ismobile for conditional rendering from the react-device-detect package in react. for eg:
`import { BrowserView, MobileView, isMobile } from 'react-device-detect';
export default function Layout({ children }) {
const style = {
//your Style
};
Hi @Kinark, I am new to Open-Source so correct me if i am wrong, But can't we Use ismobile for conditional rendering from the react-device-detect package in react. for eg:
`import { BrowserView, MobileView, isMobile } from 'react-device-detect';
export default function Layout({ children }) {
const style = {
//your Style
};
if (isMobile) {
style.margin =
auto
;style.border =
inherit
;return {children};
}
return {children};
}`
The text was updated successfully, but these errors were encountered: