Please consider the code below:
const number = Math.floor(Math.random()*10) //Gives a random number from 0 to 9
The problem with this method is that every time the component re-renders the number
constant changes (re-assigned), is there a way to keep it constant?