The official React docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, 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
| Tag | Currently | Architectures |
|---|---|---|
| 19.2.7-oe2403sp4 | react 19.2.7 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
| 19.2.7-oe2403sp3 | react 19.2.7 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
| 19.2.4-oe2403sp3 | react 19.2.4 on openEuler 24.03-LTS-SP3 | amd64, arm64 |
| 19.1.1-oe2403sp2 | react 19.1.1 on openEuler 24.03-LTS-SP2 | amd64, arm64 |
| 19.1.0-oe2403sp1 | React 19.1.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 |
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:
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 />);
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
Content type
Image
Digest
sha256:05e60493f…
Size
146 MB
Last updated
11 days ago
docker pull openeuler/reactPulls:
146
Jul 6 to Jul 12