RSeparate the CSS and JavaScript Files

RSeparate the CSS and JavaScript Files

You will learn

In this tutorial series, we will explore another technology for Single Page Application (SPA) development - React. React is another popular web framework, and is used by many companies for both internal and client-facing systems. These tutorials will parallel our SAPUI5 tutorials, building a visual interface using Angular, and connecting it to an OData back end service.

Details

REACT tutorial series

Step 4: Move the JavaScript and CSS to separate files. This file structure will make extending our application easier, and will more closely match a production application.

There are two steps:

Move the JavaScript to a separate file

Move the CSS to a separate file

Step 1: Create empty JavaScript file

￼

First, let’s move the JavaScript out of our application, and in to a proper place in our project.