I am endeavoring to adjust the size of an element by utilizing this code snippet.
const [size, setSize] = useState({});
The initial size I wish to set is:
transform: scale(1, 1) translate3d(0, 0, 0);
Upon clicking on the element, my aim is to enlarge it to the following dimensions:
transform: scale(2, 2) translate3d(0, 0, 0);
The method through which I will prompt the element to update to the new size is as follows.
const onClickHandler = (event) => {
setSize= transform: scale(2, 2) translate3d(0, 0, 0);
}