In this code i set 50px for height and width and set 8px for border So currently I create basic loaders for my project in react as re usable so I can reuse
Currently I use this formula like
const loader size = size * 0.16
Here size will be same for both height and width , For eg if I set size as 50 , width will 50px and height will be 50px