In solana you can execute multiple instructions like transferring tokens and NFTs in your react code.
I want to know what is the downside of writing your entire code in React and having no onchain program specially if you are writing a production level code. What could be a better approach?