Answers for "React_network-status*app.js*"

0

React_network-status*app.js*

import useOnline from "./onlinestatus";

import "./App.css";

function App() {
  const online = useOnline();

  return (
    <div className="App">
      <h3 class="ui center aligned icon header">
        <i class="circular plug icon"></i>
        React network Monitor
      </h3>

      <div class="ui two column centered grid">
        <span>
          {online ? (
            <div className="ui green message">
              {" "}
              <i class="wifi icon"> </i> Congrats you are ONLINE
            </div>
          ) : (
            <div className="ui red message">
              {" "}
              <i class="meh icon"> </i> please check your network connection
            </div>
          )}
        </span>{" "}
      </div>
    </div>
  );
}

export default App;

export default App;
Posted by: Guest on October-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language