Notify President Madagascar

    create-markup

    1.0.0 • Public • Published

    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

    Install

    npm i create-markup

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • janjarfalk