Skip to content

JavaScript concepts you need to know before getting into React.

    Arrow Functions: An arrow function expression is a compact alternative to a traditional function expression.

    Arrow functions, the basics

    There’s another very simple and concise syntax for creating functions, that’s often better than Function Expressions.

    It’s called “arrow functions”, because it looks like this:

    let func = (arg1, arg2, ..., argN) => expression;

    This creates a function func that accepts arguments arg1..argN, then evaluates the expression on the right side with their use and returns its result.

    Let/var/const variables: Understand the difference between them, uses and their respective scopes.
    Template Literals: With ES6, a newer form of string called template literal was given, which consists of two backticks ` `.