Best way to get in shape for a race?

I have very little experience on a dirt bike but I want to get into racing. how would I get myself ready for this ?
5 answers 5