Test Enterprise-Class Web CMS Scrivito Free for 30 Days
Test Scrivito Free for 30 Days


Displays the current page.

  <Scrivito.CurrentPage />, 


<Scrivito.CurrentPage> does not accept any props.


To build a very simple serverless single-page application, it is sufficient to mount the <Scrivito.CurrentPage> component into the DOM. Thus, rendering any page and its widgets boils down to a single JavaScript call, surrounded by some HTML boilerplate:


    <!-- required libraries -->
    <script src="react.js"></script>
    <script src="react-dom.js"></script>
    <script src="scrivito.js"></script>
    <script src="babel.js"></script>

    <!-- my widget and page classes and components -->
    <script src="widgets_and_pages.js"></script>


    <!-- app container -->
    <div id="application"></div>

    <script type="text/babel">
      // Scrivito bootstrapping code
        <Scrivito.CurrentPage />, 


This template omits the code needed to specify the available pages and widgets (defined in widgets_and_pages.js). But this additional code is as simple or as complex as your app requires.