Check out example codes for "minimize and maximize div in html". It will help you in understanding the concepts better.

Code Example 1

minMaxClose(Element, Options);

Learn ReactJs, React Native from akashmittal.com