Combo
  • Combo.js
  • Guide
    • Concepts
      • Lifecycle Methods
  • APIs
    • Component
      • canMount
      • canUnmount
      • canUpdate
      • created
      • el
      • isMounted
      • mount
      • mounting
      • mounted
      • on
      • props
      • receiving
      • received
      • refresh
      • render
      • rendered
      • state
      • unmount
      • unmounting
      • unmounted
      • update
      • updated
      • updating
  • FAQs
    • Props
    • State
    • Events
    • Ajax
Powered by GitBook
On this page
  • Returns
  • Example
  1. APIs
  2. Component

render

Invoked when the component is mounted, updated, or refreshed.

Returns

string The rendered output.

Example

import { Component } from "combo-js";

const Example = new class extends Component {  
    render() {
        return `
            <div>Hello World</div>
        `;
    }
}();

Example.mount(document.getElementById("root"));
<div id="root"></div>
PreviousrefreshNextrendered

Last updated 6 years ago