This package has been deprecated
Author message:
This package has been deprecated. Please find this package under its new name @cloudflare/component-dynamic-content.
cf-component-dynamic-content
2.4.24 • Public • Published cf-component-dynamic-content
Cloudflare Dynamic Content Component
Installation
Installation with yarn is recommended
$ yarn add cf-component-dynamic-content
Usage
import React from 'react';
import { DynamicContent } from 'cf-component-dynamic-content';
class DynamicContentComponent extends React.Component {
render() {
return (
<DynamicContent
dangerouslySetInnerHTML={{
__html: '<p>Not an XSS attack, I swear.</p>'
}}
/>
);
}
}
export default DynamicContentComponent;
Readme
Keywords
nonePackage Sidebar
Install
npm i cf-component-dynamic-content
Weekly Downloads