New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-markup

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-markup

Create a dangerouslySetInnerHTML object for React.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

create-markup

Build Status

Create a new object containing only the key __html and your string data as the value.

Installation

npm install create-markup --save

Usage

import createMarkup from 'create-markup';
const markup = createMarkup('hello'); // {__html:'hello'}
<div dangerouslySetInnerHTML={markup} />

Tests

npm test

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 1.0.0 Initial release

Keywords

react

FAQs

Package last updated on 03 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts