Energy drinks are not a good source of hydration. As they contain high amounts of caffeine and sugar, consuming too much might have a dehydrating effect on you.
As caffeine is known to have a natural diuretic effect- which will increase the amount of water and salt your body releases therefore, if you intake too much, it can lead to extreme dehydration.