Skip to content

Commit 264f381

Browse files
authored
Updated README.md (#181)
isMobile will be true on Mobile and hence the component will render.
1 parent 854cef8 commit 264f381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import {isMobile} from 'react-device-detect';
5151
function App() {
5252
renderContent = () => {
5353
if (isMobile) {
54-
return <div> This content is unavailable on mobile</div>
54+
return <div> This content is available only on mobile</div>
5555
}
5656
return <div> ...content </div>
5757
}

0 commit comments

Comments
 (0)