About 202 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. createElement – React

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

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

  5. Importing and Exporting Components – React

    You can move a component in three steps: 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 …

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

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

  8. Describing the UI – React

    React is a JavaScript library for rendering user interfaces (UI). UI is built from small units like buttons, text, and images. React lets you combine them into reusable, nestable components. …

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

  10. Rendering Lists – React - code++

    In these situations, you can store that data in JavaScript objects and arrays and use methods like map() and filter() to render lists of components from them. Here’s a short example of how to …

Refresh