About 16,700,000 results
Open links in new tab
  1. Is there an official style guide or naming convention for React …

    React components are PascalCased by convention, and when using jsx pascal casing becomes mandatory (only Capitalised first letter becomes mandatory actually). cameCase or kebab …

  2. File naming conventions in reactJS? - Stack Overflow

    May 15, 2017 · 0 React is a lot of things but straight-forward is not one of them. But if anything was to be said, I've found this article 5 Best Practices For React Developers to be very helpful …

  3. javascript - What is the difference between React Server …

    May 24, 2023 · The React Server components added in React 18 introduces a whole new paradigm to SSR. What happens in SSR is that your data is fetched and components are …

  4. Trace why a React component is re-rendering - Stack Overflow

    Mar 28, 2019 · The React DevTools extension can help with that. Also, I have a list of useful tools for visualizing/tracking React component re-rendering as part of my Redux addons catalog, …

  5. When to use ES6 class based React components vs. ES6 React …

    Mar 19, 2016 · After spending some time learning React I understand the difference between the two main paradigms of creating components. My question is when should I use which one and …

  6. Using async/await inside a React functional component

    Sep 9, 2019 · Using async/await inside a React functional component is a common practice for handling asynchronous operations, such as data fetching. Here’s a simple example …

  7. How to make a shared state between two react components?

    I have 2 react components that need to share a state, react-router shows component A, which takes some inputs and adds it to its state, after the state has been successfully updated, I …

  8. How can I communicate between related react components?

    Context React Context permits to hold state at the root of your component hierarchy, and be able to inject this state easily into very deeply nested components, without the hassle to have to …

  9. Generating a PDF file from React Components - Stack Overflow

    19 @react-pdf/renderer is a great resource for this. It is a bit time consuming converting your markup and CSS to React-PDF's format, but it is easy to understand. Exporting a PDF and …

  10. Can't resolve module (not found) in React.js - Stack Overflow

    As for import React, { Component } from 'react', this does not start with a ./ or ../ or / therefore node will start looking for the module in the node_modules in a specific order till react is found. …