Git Product home page Git Product logo

react-v6's Introduction

React v17 course

https://btholt.github.io/complete-intro-to-react-v6/

Turn me into a Monorepo, please... ๐Ÿฅบ

Vanilla

Super basic React in html, just to understand where the magic comes from ๐Ÿง™๐Ÿฟโ€โ™‚๏ธ

Real

Example of a real page in React

Hooks In Depth

Example of each kind of hook

Tailwind

https://tailwindcss.com/ https://tailwindcss.com/docs

Same App as the one created in "Real" but using tailwind for styles

To start tailwind: npx tailwindcss init Tailwind works with classNames

Code Splitting

Example or the "Real" App with code splitted to improve page rendering times Splitting code in such a small App incurres in more network latency, but with JS over 1Mb it makes sense

Server Side Render

Example or the "Real" App rendered on server side As we are going to "render" on the server (node) we need to ensure nothing client side related is called (like window - BrowserRouter uses it under the hood)

This implies modifying: App, ClientApp, Modal, index.html and package.json New scripts:

    "build:client": "parcel build --public-url ./dist/ src/server_side_render/index.html",
    "build:server": "parcel build -d dist-server --target node server/index.js",
    "build:server_render": "npm run build:client && npm run build:server",
    "start:server_render": "npm -s run build && node dist-server/index.js",

Tyescript

Migration of the "Real" app into TS

Remember to run npx tsc --init to generate the tsconfig.json file

Redux

"Real" App with Redux

react-v6's People

Contributors

apliano 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.