Skip to content

gogoyqj/preact-render-to-string

 
 

Repository files navigation

qreact-render-to-string

qreact-render-to-string bases on Jason Miller jason@developit.ca preact-render-to-string.

I make few changes so that it can work with Qreact.

Install

    npm install qreact-render-to-string

Usage

compatible with Original React.

u can use alias or require qreact-render-to-string directly.

    import React from 'react';
    import { renderToString } from 'react-dom/server';
    {
        alias: {
            'react-dom/server': 'qreact-render-to-string'
        }
    }

Thanks to

Jason Miller jason@developit.ca.

About

Universal rendering for Qreact: render JSX and Qreact components to HTML.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%