Why in the beginning of the script write var app = app || {}; var app = app || {}; ? Link to the entire file .
PS Is it possible to connect JSX scripts (so that they work later) without the help of third-party libraries? For example, through <script type="text/jsx"></script> ?