openeuler/react

Sponsored OSS

By openeuler

Updated 11 days ago

Image
0

10K+

openeuler/react repository overview

Quick reference

React | openEuler

Current React docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.

React is a JavaScript library for creating user interfaces.

Learn more on react Documentation⁠.

The tag of each react docker image is consist of the version of react and the version of basic image. The details are as follows

TagCurrentlyArchitectures
19.2.7-oe2403sp4react 19.2.7 on openEuler 24.03-LTS-SP4amd64, arm64
19.2.7-oe2403sp3react 19.2.7 on openEuler 24.03-LTS-SP3amd64, arm64
19.2.4-oe2403sp3react 19.2.4 on openEuler 24.03-LTS-SP3amd64, arm64
19.1.1-oe2403sp2react 19.1.1 on openEuler 24.03-LTS-SP2amd64, arm64
19.1.0-oe2403sp1React 19.1.0 on openEuler 24.03-LTS-SP1amd64, arm64

Usage

In this usage, users can select the corresponding {Tag} based on their requirements.

  • Pull the openeuler/react image from docker

    docker pull openeuler/react:{Tag}
    
  • Run with an interactive shell

    You can also start the container with an interactive shell to use React.

    docker run -it --rm openeuler/react:{Tag} bash
    
  • Example: A Simple React Counter

    This code demonstrates a basic React counter component that:

    • Tracks a numeric count value
    • Provides a button to increment the count
    • Displays the current count value
    import { useState } from 'react';
    import { createRoot } from 'react-dom/client';
    
    function Counter() {
      const [count, setCount] = useState(0);
      return (
        <>
          <h1>{count}</h1>
          <button onClick={() => setCount(count + 1)}>
            Increment
          </button>
        </>
      );
    }
    
    const root = createRoot(document.getElementById('root'));
    root.render(<Counter />);
    

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Tag summary

Content type

Image

Digest

sha256:05e60493f

Size

146 MB

Last updated

11 days ago

docker pull openeuler/react

This week's pulls

Pulls:

146

Jul 6 to Jul 12