Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No style with ReactDOMServer #20

Open
demostanis-worlds opened this issue Jul 24, 2019 · 1 comment
Open

No style with ReactDOMServer #20

demostanis-worlds opened this issue Jul 24, 2019 · 1 comment

Comments

@demostanis-worlds
Copy link

Hello,
I'm using ReactTerminal with ReactDOMServer, my main component looks like this:

import React, { Component } from "react"
import ReactTerminal, { ReactThemes } from "react-terminal-component"

export default class App extends Component {
	render() {
		return (
			<div>
				<ReactTerminal />
			</div>
		)
	}
}

And then I render it on the page using ReactDOMServer.renderToString(<App />). Tho, there's no style:
No style
Can anyone help me? Thanks

@laenan8466
Copy link

laenan8466 commented May 2, 2020

I have a very similar behavior found:

Different Browsers

Chrome:

After a reload is is displayed as desired.

Firefox:

Even with reload, this doesn't change.

Suspected reason

  • This could be related to this firefox issue.
  • The only display after reload isn't clear to me yet.

UPDATE:
When not using a theme = in the TerminalApp, then this issue isn't present. Searching for a workaround for theming now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants