About 6,430,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. 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 …

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

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

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

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

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

  9. How can I communicate between related react components?

    How can I communicate between related react components? Asked 11 years, 8 months ago Modified 3 years, 5 months ago Viewed 230k times

  10. Using Jest to mock a React component with props - Stack Overflow

    Jun 7, 2017 · Here's an alternative (better?) way of dealing with mocking components that need to be passed props: using module mock files. First create a file with the same name as the …