-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

The TypeScript Workshop
By :

Now that we have learned how to build an interface and have the ability to pass data, along with having some help from IntelliSense in knowing the types of data that we're passing in, we can actually generate some HTML. It's fun to see the code we write generate its own code. Part of the reason why we chose to include this example is that this is very close to the same type of process that you will be using when building React JS or Angular applications. At their very core, the goal of a standard React app is to leverage JavaScript/TypeScript code to render HTML code that can be rendered to the user.
In the next section, we'll complete an exercise wherein we generate HTML code and view it in the browser.
In this exercise, we will generate some HTML by cleaning up some of the code. We'll get rid of the name
attribute and the interface. Perform the following steps to implement...