I think onload function with state can work also skeleton component need some css properties or their inbuilt settings.