Skip to main content

15 docs tagged with "react-dom"

View all tags

Adding A CSS Modules Stylesheet

Learn how to add a CSS Modules stylesheet to your Create React App project. Use scoped styling and prevent naming clashes by automatically generating unique class names for your styles.

Adding A CSS Reset

Learn how to add a CSS reset to your Create React App project using PostCSS Normalize. Ensure consistent styling across different browsers by providing a solid foundation for your React components.

Adding A Stylesheet

Learn how to add a stylesheet to your Create React App project. Style your components and make them visually appealing with CSS.

Available Scripts

Learn about the available scripts in a Create React App project. Use these scripts to start, test, build, and eject your app, as well as to run custom scripts.

Installing a Dependency

Learn how to install a dependency in your Create React App project. Unleash the power of enchanting packages and add new spells to your React app with the help of npm.

Post Processing CSS

Learn how to leverage post-processing CSS in Create React App to enhance your stylesheets and ensure cross-browser compatibility. Automatically add vendor prefixes, embrace new CSS features, and more.

Unleash the Magic of the Public Folder

Learn how to use the public folder in a Create React App project. Customize the HTML file and add assets directly to the public folder to enhance your React application.

useCallback Hook Concept

The useCallback hook is a built-in React hook that allows you to memoize functions in functional components. It is particularly useful for optimizing performance by preventing unnecessary re-renders of child components that depend on callback functions.

useContext Hook Concept

The useContext hook is a built-in React hook that allows you to consume context values in functional components. It provides a way to access data from a context provider without having to pass props down through multiple levels of the component tree.

useEffect Hook Concept

The useEffect hook is a built-in React hook that allows you to perform side effects in functional components. It serves as a combination of lifecycle methods like componentDidMount, componentDidUpdate, and componentWillUnmount in class components.

useMemo Hook Concept

The useMemo hook is a built-in React hook that allows you to memoize expensive calculations or computations in functional components. It helps optimize performance by preventing unnecessary recalculations of values that depend on certain inputs.

useReducer Hook Concept

The useReducer hook is a built-in React hook that provides an alternative way to manage state in functional components, especially when dealing with complex state logic or multiple related state variables.

useRef Hook Concept

The useRef hook is a built-in React hook that allows you to create mutable references to DOM elements or any other value that persists across renders in functional components.

useState Hook Concept

The useState hook is a built-in React hook that allows functional components to manage state. It provides a way to add stateful logic to functional components, enabling them to hold and update data over time.