Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://fb.me/react-0.14.3.min.js "></script>
<script src="https://fb.me/react-dom-0.14.3.min.js "></script>
</head>
<body>
<script type="text/javascript">
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
device = "mobile device";
}
else {
if (screen.width <= 1366 && screen.height <= 780) {
device = "notebook";
}
else {
device = "monitor";
}
}
</script>
<script type="text/javascript">
var div = React.DOM.div
var HelloWorldComponent = (
div(null,'' + device + '')
)
ReactDOM.render(HelloWorldComponent, document.getElementsByTagName('body')[0]);
</script>
</body>
</html>
The most helpful REACT solutions
How to get client ip address using react ?REACT Click to see more ... 19.2K 421