About 13,400,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. javascript - Is it possible to share states between components …

    Nov 24, 2018 · I was experimenting with the new Hook feature in React. Considering I have the following two components (using React Hooks) - const HookComponent = () => { const …

  8. What is the difference between using .js vs .jsx files in React?

    Sep 12, 2017 · React components are the building blocks of a React application, and they encapsulate reusable pieces of UI. JSX files contain both JavaScript logic and HTML-like …

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

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