Sha256: 32b193f3d4682753f151e7c4f7624044c162ef2c60327841733785e8ceaa7f6a

Contents?: true

Size: 207 Bytes

Versions: 6

Compression:

Stored size: 207 Bytes

Contents

import {renderToString} from 'react-dom/server';
import React from 'react';
import Counter from './index';

window.renderCounterServer = function(props) {
  return renderToString(<Counter {...props} />);
};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
js_render-0.7.0 examples/react/app/assets/javascripts/components/Counter/renderServer.js
js_render-0.6.0 examples/react/app/assets/javascripts/components/Counter/renderServer.js
js_render-0.5.0 examples/react/app/assets/javascripts/components/Counter/renderServer.js
js_render-0.4.0 examples/react/app/assets/javascripts/components/Counter/renderServer.js
js_render-0.3.0 examples/react/app/assets/javascripts/components/Counter/renderServer.js
js_render-0.2.0 examples/react/app/assets/javascripts/components/Counter/renderServer.js