Husband should be sane and grownup while giving talaq. If any sane and grownup person utters words of talaq for his wife, the wife will be divorced and consequently she will have to observe all rulings of talaq:
ویقع طلاق کل زوج اذا کان بالغاً عاقلاً، کذا فی الجوھرۃ (الھندیۃ: 1/353، البحر: 3/426)
As far as the matter of reconciliation between wife and husband is concerned, it is desirable act but it is not necessary to precede talaq to take place. If any court makes dialogue and reconciliation effort as compulsory before nikah and nullifies the previous talaq before reconciliation effort, then this ruling is against Shariah and it is not acceptable for a Muslim.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband