Home

r3f.js

Summary.

Two rotating cubes using React without Nodejs.

When the mouse is hovered onto a cube, its color changes from orange to hotpink.
When a cube is clicked, its scale is toggled from 1 to 1.5 and its color changes.

This is a very simple script, and for running it the "normal" way, it would be necessary to install the React ecosystem (downloading at least 400 Mb of npm packages) and either deploying it elsewhere, or having a local Apache server configured.

Since:
  • 10/10/2024
Author:
  • Paulo Roma
Source:
See: