镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

About

Render a Glamorous React component as static html, useful for visual regression tests

Topics

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

render-glamorous

Travis npm package Coveralls

Render a Glamorous React component as static html, useful for visual regression tests.

Originally built for use with component-image.

Usage

npm i -D render-glamorous

import renderGlamorous from 'render-glamorous';
import MyComponent from './components/my-component';

const htmlString = renderGlamorous(MyComponent); // returns static html markup with inline CSS

With component-image

npm i -D render-glamorous component-image

import { generateImage } from 'component-image';
import renderGlamorous from 'render-glamorous';
import MyComponent from './components/my-component';

generateImage(MyComponent, {
  renderer: renderGlamorous
}).then(image => {
  // do something
});

About

Render a Glamorous React component as static html, useful for visual regression tests

Topics

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages