Skip to content

Commit

Permalink
Updated README.md (#181)
Browse files Browse the repository at this point in the history
isMobile will be true on Mobile and hence the component will render.
  • Loading branch information
sethitushar committed Apr 10, 2022
1 parent 854cef8 commit 264f381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import {isMobile} from 'react-device-detect';
function App() {
renderContent = () => {
if (isMobile) {
return <div> This content is unavailable on mobile</div>
return <div> This content is available only on mobile</div>
}
return <div> ...content </div>
}
Expand Down

0 comments on commit 264f381

Please sign in to comment.