Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SKindij/React-Redux-Knowledge-Base

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

116 Commits
116 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

REACT knowledge base

πŸ“š React Fundamentals

  • πŸ“– Π‘omponents
    • JSX syntax
    • class component
    • functional component
    • simple component
  • πŸ“– Props
    • how to pass data from parent to child components
  • πŸ“– State
    • how to manage state within a component
  • πŸ“– Component Lifecycle
    • how to use methods to control component behavior
    • common use cases for each method
  • πŸ“– Handling Events
    • how to handle user events in components
    • examples of common event handlers
  • πŸ“– Conditional Rendering
    • how to conditionally render components
    • Ternary operator and logical operators
    • Rendering lists and mapping data to components
  • πŸ“– Forms in React
    • how to handle form submission
    • how to manage form input fields with state
    • validating form input data
  • πŸ“– Styling in React
    • different ways to style components
    • CSS-in-JS libraries like Styled Components
    • best practices for styling components

πŸ“š React Hooks

 React Hooks are a powerful way to manage state and lifecycle methods in React.

Hooks Usage Features
πŸ“–useState Managing component state - declare and update state variables in functional components;
- returns array with current state value and funct to update state;
- allows func components to have state similar to class components;
πŸ“–useEffect Side effects (e.g., data fetching, subscriptions) - perform side effects in func components;
- runs after every render by default;
- takes function as its first argument that can perform cleanup operations;
- can specify dependencies to control when it should run;
πŸ“–useContext Accessing context within components - access and consume data from Context provider in func components;
- provides way to avoid prop drilling and pass data between components without intermediaries;
πŸ“–useReducer Managing complex state with actions - manage state in more complex and predictable way;
- accepts reducer func and initial state, returns current state and dispatch func to update state;
- Ideal for state with complex logic.
πŸ“–useCallback Optimizing function references - memoize functions to prevent unnecessary re-renders in child components;
- returns memoized version of callback function;
- Useful when passing callbacks to child components that rely on reference equality.
πŸ“–useMemo Memoizing expensive computations - memoize result of expensive computation;
- returns memoized value that only recalculates when its dependencies change;
- can improve performance by avoiding unnecessary calculations;
πŸ“–useRef Refs and accessing DOM elements - access DOM nodes or store mutable values;
- returns mutable ref object that persists across component renders;
- allows imperative access to underlying DOM or accessing child component instances;
  • πŸ“– Custom Hooks
    • how to create them
    • extract common logic into Hook
    • best practices

πŸ“š React Router

 If you plan to create multi-page applications, you'll need to learn about React Router.
This library allows you to manage your application's routes and navigation.

  • πŸ“– Introduction
    • need for routing in SPA
    • benefits and features
  • πŸ“– Route Rendering
    • configuring basic routing in React app
    • <Switch> and <Redirect> components
    • <Route> component with path prop
    • setting up entry point for routing
    • route configuration options
    • using useParams hook
  • πŸ“– Navigation and Linking
    • difference between <Link> and <a> tags
    • using history object or useHistory hook
    • using useLocation hook
  • πŸ“– Route Guards and Authentication
    • using <Prompt> component
    • checking user authentication status
  • πŸ“– Advanced Topics
    • Server-side Rendering
    • code-splitting & lazy-loading
    • animations and transitions between routes

πŸ“š Redux

 Redux is a popular state management library used in many React applications.
It can be a bit complex to learn, but it's a powerful tool once you understand it.

  • πŸ“– Store
  • πŸ“– Actions
  • πŸ“– Reducers
  • πŸ“– Store Subscriptions
  • πŸ“– React-Redux
    • Provider component
    • connect function
  • πŸ“– Middleware
  • πŸ“– DevTools
  • πŸ“– Advanced Topics
    • selectors
    • immutability
    • testing

πŸ“š RΒ EΒ AΒ CΒ T Libraries for 2023

  • πŸ“– how to set up React project

  • πŸ“– deploy and host React application


πŸ“š Extracurricular reading

  • πŸ“– user authentication in React app
  • popular tools and libraries
  • custom user auth system
  • πŸ“–

About

topic 🚴 general REACT knowledge base

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.