Giter Site home page Giter Site logo

react-training's Introduction

React training

Introduction

Welcome to this two-day React training! It is very important that you read and follow these instructions before the actual training.

Human requirements

  • You are a developer, devsigner or such with working professional knowledge on JavaScript, HTML and CSS. You don't have to be a guru, but the training is not suitable for total beginners.
  • Learn the ES6 syntax (see below) beforehand so you don't have to spend time learning it in the training.
  • We are going to show code examples and use TypeScript in our training so it will help you immensely to know the basics. However, you don't have to write TypeScript if you don't want to.

ES6 syntax

We are going to use the "new" ES6 syntax to write our JavaScript. Features / syntax you will definitely need to know are:

  • Block scoped variables: let and const
const foo = 'bar'
let quux = 123
  • Modules and their import and export syntax
import React, { useState } from 'react'

export function App() {
  ...
}
  • Arrow function syntax
const getStuff = (id) => {  ... }
  • Array / object destructing
const { persons } = props
const [person1, person2] = persons
  • Promises and async / await syntax
async function getStuff() {
  ...
}

const stuff = await getStuff()

Computer requirements

  • MacOS and Linux will definitely work. Windows should probably work too, but please test it before hand!
  • A recent version of Node.js. Node.js 10 or newer will likely work.
  • The Yarn package manager is recommended. NPM will work too if you're old school.
  • VSCode is the recommended editor and the project is preconfigured to work with it. Other editors / IDEs will of course work too but are not officially supported.

Browser extensions

Install these Chrome extensions, or similar ones for your browser of choice.

Installation

Start by cloning this repository.

If you don't know how to use Git then please spend some time to learn the basics.

step0 is the branch that contains the starting point for our training.

  • git checkout step0

client

  • cd client
  • yarn to install packages
  • yarn start to start the client

Open browser and go to http://localhost:3000/. You should see a very simple welcoming page.

server

  • cd server
  • yarn to install packages
  • yarn start to start the server

Open browser and go to http://localhost:8889/persons and you should see big list of persons in JSON.

If you can open both the client and the server successfully in your browser then you are good to go!

react-training's People

Contributors

dependabot[bot] avatar puppe0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.