zibri
    Preparing search index...

    Class PreactUtilitiesAbstract

    Utilities for handling preact templates.

    Index

    Constructors

    Methods

    • Renders the given component as an email, so no script injection is happening.

      Type Parameters

      • T = {}

      Parameters

      Returns string

      The fully rendered html.

      PreactUtilities.renderEmail(TestEmail, { recipient: 'James Smith' });
      
    • Renders the given component as a page with the component "body" (everything before the top-level return) inlined into the same