Being good at cornering is a life-long pursuit, you'll forever get better. That said, there are 4 main points that you need to keep in mind that'll keep you rubber-side down and ripping.
Note, the 'Four L's" was an impromptu presentation that Marty Christman and I came up with late in 2021 at a Bulldogs MTB practice after being inspired by Lee McCormick in this vid.
The "Four L's" are:
Look - Look through the turn
Lean - Lean the bike
Load - Load your outside leg