Potentiam interview question

How to maintain security in React application?