A will is a legal document that states what should happen to your estate after your death. It also states who should be appointed to administer your estate.
If you die without a will, your estate will be distributed according to state intestacy laws. This may not be what you intended, so it’s important that you draw up a will as soon as possible.
The asset will automatically be transferred to the other owner upon your death. In the case of real estate, this is achieved through a survivorship application.
This will happen regardless of what you say in your will.
If you divorce after your Will has been made, it will not be revoked, but any gifts to your former spouse will be revoked as well as any appointments of your former spouse as executor.