Skip to content

ispoljari/react-workshop-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

react-workshop-notes

Class Notes for the Jobfair React Workshop

The goal of the workshop is to introduce students to the basic concepts of React by implementing features on a real app.

The live version of the app can be found here: Explore Comsysto Reply

About React

Declarative

React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable and easier to debug.

Component-Based

Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.

Top-Down Data Flow (Unidirectional)

Data flows from parent to children components

React Mental Models

React Class Lifecycle

React Hooks Lyfecyle

Disclaimer

The Mental model for hooks is similar to the mental model for class component lifecycle only on the surface, and when considering more complex use cases the analogy starts to break down. But, this is a more advanced topic. (For the curious: https://iqkui.com/a-complete-guide-to-useeffect/)

Useful Cheatsheets and Documentation

Wireframes

JobFair Workshop App Wireframes

Thinking In React

  1. Break The UI Into A Component Hierarchy

  2. Build A Static Version in React

  3. Identify The Minimal (but complete) Representation Of UI State

  4. Identify Where Your State Should Live

  5. Add Inverse Data Flow

CodeSandbox

JobFair - React Workshop Start

JobFair - React Workshop Final

About

Class Notes for the Jobfair React Workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published