I suspect this is where you’re having the trouble, and that you’re OK with creating blocks that have the same height and width.
When I click on these blocks, it should cycle between red fill with a blue border, blue fill with a green border, and green filled with a red border.
So, you click on any of the boxes and they all change fill colors and border colors, or just the one you clicked on? By cycling, do you mean with each click?
Have you tried using state to keep track of click events, fill colors, border colors, etc,…?
import React from ‘react’;
//import Rectangle from ‘./components/Rectangle’;
import style from ‘./components/Block’;
import ‘./style/App.css’;
import Block from ‘./components/Block’
One thing you could try doing is toggling through different class names for the elements, so that upon clicking, a new/updated class name would be given to an element, which would give the element a new background color and border color according to its new/updated class.