Do you have to give baby food

I’m curious to know If baby food has to be given? Can you just bottle feed and give fruit her and there and little baby snacks?

Edit: let me add she won’t eat the baby food I’ve try all the flavors and oatmeal since 6 months she is now 7 months and will only try regular food.