react

React Express Socketio

April 27, 2020
nodejs, expressjs, react, socket.io, websockets

Requirements: Create a React application and run it to get default page Remove all extant files Create a new App.js starter file Add socket-io to server.js Add socket-io-client to App component Send ‘Welcome!’ message on client connect Render ‘Welcome!’ message from the server Tech: nodejs npm npx react (create-react-app) socket.io (socker-io) socket.io-client (https://www.npmjs.com/package/socket.io-client) References ...

React Function Components

April 27, 2020
nodejs, react, function component, react hooks

Requirements: Create a React application and run it to get default page Remove all extant files Create a new App.js starter file Add a new function component that renders an input field and a button - call this Input Add a new function component that renders a table - call this Table Import and add both new function components as child components to the App ...