Actually the problem is flowbite uses index.html for including dependecies so in react router v7 it not works so on same page if we refresh page
it works this is a big problem with flowbite js components