Slow down on your exercises when you begin to feel pain or tightness. Continuing to use the same routine you did before the injury can slow down the healing process.
Rest the hamstring muscle. Many dancers find it helpful to take a few days off, to give their body time to heal.
Stretch and strengthen the muscle using exercises and routines prescribed by a doctor or trainer. You want to take things slow and steady.
Use different techniques to increase the strength in the muscles. Many doctors recommend swimming as a way to rehabilitate the hamstring because it stretches the area without putting too much pressure on the spot.