Skip to content

Learning React + Next.js while backed by an express server

Notifications You must be signed in to change notification settings

rkbrewer/react-trello-clone

Repository files navigation

Learning React (coming from Vue)

My initial notes are in the local copy of this repo on my desktop. Copy them here! (2/27/20)

Differences

(copy my notes from my desktop)

  • Computeds. Vue really shines here. Computeds are so common place it's nice I don't have to think about memoizing them. In React, Dave Ceddia recommends making your own via getters and writing your own memoization for them. I wonder if I could tighten this up?

Reactness

  • call setState with a fn param! You can't rely on "previous state" because of how react works this.setState((state, props) => ({ counter: state.counter++ }))

Trello Clone

Users

  • id
  • name
  • pw
  • boards (have many)

Boards

  • lists (have many)
  • id
  • title

Lists

  • cards (have many)
  • title
  • id

Cards

  • title
  • description
  • comments (have many)

Stack

  • redux
  • persist store
  • forms w/formik + yup (validation) vs React Final Form

Helpful articles

About

Learning React + Next.js while backed by an express server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published