question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

is reactDOMServer loaded on the browser?

See original GitHub issue

RenderReact imports reactDOMServer here: https://github.com/airbnb/hypernova-react/blob/master/src/index.js#L3

Your example bundles

var React = require('react');
var renderReact = require('hypernova-react').renderReact;

function MyComponent(props) {
  return React.createElement('div', {
    onClick: function () {
      alert('Click handlers work.');
    },
  }, 'Hello, ' + props.name + '!');
}

module.exports = renderReact('MyComponent.js', MyComponent);

into the rails application using sprockets.

Does this mean the client browser is always loading reactDOMServer?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
wingleungcommented, May 10, 2018

getting it started, should we break current implementations? -> https://github.com/airbnb/hypernova-react/pull/45

1reaction
ljharbcommented, Aug 31, 2017

You can always alias out that import in your bundler.

I suppose we could lazy-require it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it ok to use ReactDOMServer.renderToString in the browser ...
I just want to prepare an HTML string from React components that I can use in a Leaflet DivIcon, and I'm wondering if...
Read more >
ReactDOMServer – React
These methods are only available in the environments with Web Streams (this includes browsers, Deno, and some modern edge runtimes):.
Read more >
ReactDOMServer | Working and Examples of Dom Server in ...
Usage of ReactDOMServer at the browser and the server: ... method is used for generating HTML onto server and sending mark-ups for quicker...
Read more >
Understanding Hydration in React applications(SSR)
The ReactDOMServer object enables us to render components to static markup ... It is loaded in the browser, and the app becomes interactive....
Read more >
React DOM Server - Coding Ninjas CodeStudio
Server-side rendering (SSR) is a technique for loading JavaScript from website ... Usage of ReactDOMServer on the browser and the server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found