Sha256: cc4996e6fff9896ff5eecc1787df8116b0995b6d7cf4c9ae8d3f80087fe38d61
Contents?: true
Size: 562 Bytes
Versions: 56
Compression:
Stored size: 562 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
56 entries across 56 versions & 2 rubygems