This is how i have my route component and returning null inside only works,without returning a null i get an error.So what is the logic behind that ?
const route