Building webViews with React

First of all, we will create a home view from which React will be called. So, let's create index.html, which has the following contents, in the template directory:

    <!DOCTYPE html> 
     <head lang="en"> 
      <meta charset="UTF-8"> 
      <title>Flask react</title> 
     <div class="container"> 
       <div id="react"></div> 
   <!-- scripts --> 
    <script src=""></script> 
    <script src="      react/15.1.0/react.min.js"></script> 
    <script src="      router@2.8.1/umd/ReactRouter.min.js"></script> 
    <script src=" libs/react/15.1.0/react-dom.min.js"></script> <script src=" ...

Get Cloud Native Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.