These days lots of hammers have steel or fiberglass handles. But for light trim work around the house, I actually prefer a good old wooden handled hammer. And it’s easier than you might think to replace a broken hammer handle, plus it will save you money.
First, cut off the broken handle, and lay the head on a small block of wood with the claws facing up so you can drill out the remains from the eye. Next, insert the throat of the new handle into the head so that the fit is snug.
With the handle in place, cut off the excess that projects above the top of the head. Drive a wood shim into the groove at the top of the handle and finish the job by inserting a metal wedge at a right angle to the wood shim.