The best thing to do is keep your wits about you. Give the other car plenty of room. The poor driving skills of the other driver may mean he or she is impaired. Don't try to get revenge. Just try to get home safely.
Take a deep breath, giving yourself time to calm down. Realize this person probably doesn't realize what they've done, know that you've done it yourself. Go on with your day.