Coconut water is rich in potassium and many other components. And it contains low calories. But coconut water lacks many elements for which we should have fruits also.
But if you are looking for something to hydrate yourself, you should prefer water over coconut water. However, coconut water helps in rehydrating. It is a misconception that coconut water is better for hydration than drinking water.