Skip to content

Teneff/react-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Workshop

Session 1 (Initial app setup)

Session 2 (video)

  • adding VSCode plugin ES7 React/Redux/GraphQL/React-Native snippets for faster component creation

  • updating the JSX to remove the ESLint warnings/errors by chaning

    • class property to className
    • href="#" to href="/"
    • tabindex to tabIndex
  • Taking a look at JavaScript's data types and how are they rendered

    • string
    • number
    • undefined
    • null
    • boolean
    • function
    • class
  • Naming convention

  • Creating components

    Creating reuseable components to be used accross the Blog and simplify the App component

    ├── components
    │   ├── Footer.jsx
    │   ├── Header.jsx
    │   ├── Navigation.jsx
    │   ├── Pagination.jsx
    │   ├── Sidebar.jsx
    │   └── posts
    │       ├── Featured.jsx
    │       ├── Jumbotron.jsx
    │       └── Post.jsx
    └── pages
        └── Home.jsx
    
    • props
      • passing data to children
      • sending data to parents
      • children prop
    • state
    • lifecycle methods
    • hooks
    • React.Fragment

Session 3 (video)

  • modifying the remaing components to render dynamic data
  • Parsing markdown
  • Formatting JavasScript Date
  • React Router
    • creating simple page routing
      • / (home page)
        • /author/:authorId (posts by author)
        • /category/:categoryId (posts by category)
      • 404 (anyhting else)

Session 4 (video)

  • Navigation
    • accepting dynamic categories
    • making array of unique values
  • Category page
    • filtering posts to only display posts from the corresponding category
  • Adding /edit page
    • creating textarea and live preview
  • API client using Axios
    • Adding http-proxy-middleware (proxying localhost API requests to avoid CORS errors)
    • fetching posts data from the API

Upcoming sessions

About

React workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published