@cloudflare/component-dynamic-content

3.0.3 • Public • Published

@cloudflare/component-dynamic-content

Cloudflare Dynamic Content Component

Installation

Installation with yarn is recommended

$ yarn add @cloudflare/component-dynamic-content

Usage

import React from 'react';
import { DynamicContent } from '../../src';

class DynamicContentComponent extends React.Component {
  render() {
    return (
      <DynamicContent
        dangerouslySetInnerHTML={{
          __html: '<p>Not an XSS attack, I swear.</p>'
        }}
      />
    );
  }
}

export default DynamicContentComponent;

Readme

Keywords

none

Package Sidebar

Install

npm i @cloudflare/component-dynamic-content

Weekly Downloads

4,638

Version

3.0.3

License

BSD-3-Clause

Unpacked Size

140 kB

Total Files

9

Last publish

Collaborators

  • cf-media-manager
  • jacobbednarz
  • celso
  • cf-radar
  • dash_service_account
  • g4brym
  • snigdha34
  • wrangler-publisher
  • marksteyn
  • chiminator
  • sgoodhew_cf
  • terinjokes
  • third774
  • jsteinberger
  • jasnell
  • asapzacy
  • pcostanzo
  • gregbrimble
  • geelen
  • rexscaria
  • dcruz_cf
  • xuranwang
  • jculvey
  • sejoker
  • vasturiano
  • cf-ci-write
  • segments-write
  • thibmeu
  • xortive
  • gurjinder
  • cf-ci2
  • lvalenta
  • worenga