Sha256: 8ccc39c6fc8ab30c730d53bb12fc355a85f39d256e248a047dd6d4f13145fbc0
Contents?: true
Size: 561 Bytes
Versions: 30
Compression:
Stored size: 561 Bytes
Contents
import * as React from "react"; import * as ReactDOM from "react-dom"; import Comments, { CommentsApplicationProps } from "./comments/comments.component"; import loadTranslations from "./support/load_translations"; window.DecidimComments = window.DecidimComments || {}; window.DecidimComments.renderCommentsComponent = (nodeId: string, props: CommentsApplicationProps) => { const node = window.$(`#${nodeId}`)[0]; ReactDOM.render( React.createElement(Comments, props), node ); }; // Load component locales from yaml files loadTranslations();
Version data entries
30 entries across 30 versions & 1 rubygems