There is no one answer for that. It depends on your position, your chip stack, how the other players are playing, and many other factors.
I like to at least 3 bet with them so the sb and bb don't suck out on me. But yesterday I was playing a game where a player was going allin repeatedly, so I limped and called his allin. Had I 3 bet, he might have folded.
The more you play, the more you will know which way to play them at different times. I also watch some of the streamers on Twitch to get different perspectives on poker play. It can be very interesting!
Good luck to you!