I just hope many people woukd be aware of the risk that is involved in using centralized exchanges especially when they keep all their assets in the exchange without splitting it so in case of anything that could happen. It is better we learn from other people's mistakes and don't do something that is going to have bigger effect on us. Keeping money on an exchange is not bad but we all need to be wise and don it appropriately. We can keep like 40% of our cryptocurrency portfolio on an exchange while the rest can be in the wallet.
You can keep some of your coins in the exchange if you have other trading activities that you need to do or avail some of the financial services like staking or savings in the exchange. But if not, it is always best to get it out of the exchange.