Hello,
In my experience cornering is a crap shoot. For sharp left turns, I down shift to second gear about 5 feet from the crux, hold in the clutch and lock up the rear wheel. On exit, or half way thru turn I accelerate and up shift, giving you nice slingshot action.
For sharp right turns, it's almost impossible to rear brake, since your foot should be down. In this instance, I would again gear down to second, a little sooner, and front brake to control speed. Once in the crux, it's the same process for exit.
For long sweeping turns, I only use the engine as a brake, high speed and brakes can be hazardous to inexperienced riders, so for the time being concentrate on steady acceleration throught the corner.
Hope this helps.
p.s. On some berms, if you accelerate to soon in the rut, the possibility of getting "bucked off" is quite possible. Trust me, the bike goes one way and you go the other, meaning that you should be prepared to land hard. Always wear proper gear, like chest protection, helmet, boots, gloves, for sure.