About 13,300,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. 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 …

  3. 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 …

  4. 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 …

  5. 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, …

  6. How to (force to) re-render a functional component?

    The component above uses a custom hook function (useForceUpdate) which uses the react state hook useState. It increments the component's state's value and thus tells React to re-render …

  7. 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 …

  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 [duplicate]

    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. Difference between React Component and React Element

    Jun 22, 2015 · What is the difference between React Component and React Element? The documentation mentions both but does not go into detail, some methods require components, …