Skip to content
Snippets Groups Projects
Commit ed0782b0 authored by Joni Laukka's avatar Joni Laukka
Browse files

pohjaa

parent 44ad20b0
No related branches found
No related tags found
2 merge requests!26Development,!22Join, edit game form
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div> <div id="root"></div>
<div id="form"></div>
<!-- <!--
This HTML file is a template. This HTML file is a template.
If you open it directly in the browser, you will see an empty page. If you open it directly in the browser, you will see an empty page.
......
import React from "react";
import ReactDOM from "react-dom"
export default class JoinGameForm extends React.Component{
render(){
if(this.props.game === null){return false;}
return ReactDOM.createPortal(
<div className="fade-main">
<label>{this.props.game.name}</label>
<div>{this.props.game.desc}</div>
</div>,
document.getElementById('form')
);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment