Tag: javascript

  • How To Use Express Middleware

    How To Use Express Middleware

    Middleware is a technique that allows software developers to make specific code run anytime an Express route is called. The middleware pattern makes it possible to execute code between a server receiving a request and sending a response. Hence the name Middleware, as it lives in the middle. Express uses middleware to apply behavior to […]

  • What Is express.Router() For

    What Is express.Router() For

    Express Routers are a way to organize your Express application such that your primary app.js file does not become bloated and difficult to reason about. As you’re building an Express application or API, you’ll soon notice that the routes continue to pile up in app.js. This makes the file quite long and hard to read. […]

  • How To Setup Express Routes

    How To Setup Express Routes

    JavaScript is the language of the web and you are likely familiar with it running in all of your favorite web browsers. JavaScript also runs on the server via Node and in this tutorial, we’ll take a look at setting up routes in the popular Express framework. To start using Express, first, make sure Node […]

  • Higher Order Functions In JavaScript

    Higher Order Functions In JavaScript

    Without fail, you are going to need to iterate or loop over data in your programs no matter the language. In JavaScript, we have several loop constructs to do this, as well as the so-called higher-order functions. These higher-order functions allow a more concise syntax to allow you to iterate over a collection while applying […]

  • React useState Hook

    React useState Hook

    There has been a paradigm shift in how React works with regard to state, classes, and functions. React now has a feature called hooks, and it looks like a game changer. From reading the react documentation, and watching React Conf, it looks like us web developers should become familiar with Hooks in React since they […]

  • Create A Navbar Component In React

    Create A Navbar Component In React

    In this tutorial we are going to add a NavBar component to the application we have been building in React. During this process we’ll need to do some refactoring in order to shift local state out of child components, and into the App parent component. By following this convention, we’ll need to raise events in […]

  • How To Delete An Item From An Array In React

    How To Delete An Item From An Array In React

    In this react tutorial we’ll review a few things and then look at how to delete an item from an array. The number of items in the array determines how many item components are displayed on the page. We want to be able to click a button on a specific item, and have React automatically […]