About 194 results
Open links in new tab
  1. Your First Component – React

    React lets you create components, reusable UI elements for your app. In a React app, every piece of UI is a component. React components are regular JavaScript functions except: Their …

  2. Quick Start – React - reactjs.org

    Creating and nesting components . React apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as …

  3. Importing and Exporting Components – React

    Make a new JS file to put the components in. Export your function component from that file (using either default or named exports). Import it in the file where you’ll use the component (using the …

  4. Tutorial: Tic-Tac-Toe – React - reactjs.org

    App.js. The code in App.js creates a component. In React, a component is a piece of reusable code that represents a part of a user interface. Components are used to render, manage, and …

  5. Passing Props to a Component – React

    Every parent component can pass some information to its child components by giving them props. Props might remind you of HTML attributes, but you can pass any JavaScript value through …

  6. Passing Data Deeply with Context – React - code++

    In general, if some information is needed by distant components in different parts of the tree, it’s a good indication that context will help you. Recap. Context lets a component provide some …

  7. createElement – React

    Call createElement to create a React element with the given type, props, and children.

  8. Component – React

    Component is the base class for the React components defined as JavaScript classes. Class components are still supported by React, but we don’t recommend using them in new code.

  9. PureComponent – React

    PureComponent is a subclass of Component and supports all the Component APIs. Extending PureComponent is equivalent to defining a custom shouldComponentUpdate method that …

  10. createContext – React

    Context lets components pass information deep down without explicitly passing props. Call createContext outside any components to create one or more contexts.

Refresh