@cdc/markup-include
v4.24.10
Published
React component for displaying HTML content from an outside link
Downloads
128
Readme
@cdc/markup-include
<CdcMarkupInclude />
is a React component produced by the CDC for importing HTML markup data from a separate source link.
This package is part of the larger CDC Open Visualization project.
Installation and Usage
- Install the package in your React project
npm install @cdc/markup-include
- Import the component and begin using in your code.
import CdcMarkupInclude from '@cdc/markup-include'
function App() {
return (
<div className="App">
<CdcMarkupInclude config={configObj} />
</div>
);
}
export default App;
Note, you must pass in a configuration object. Configuration objects can be created with the Editor package.