Check out example codes for "field sets in salesforce". It will help you in understanding the concepts better.

Code Example 1

setTimeout
    window.setTimeout(rerenderPicklist,2000);

Code Example 2

Fieldset example

Learn ReactJs, React Native from akashmittal.com