app.js edited online with Bitbucket
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
function renderOnServer() {
|
function renderOnServer() {
|
||||||
return ReactDOMServer.renderToString(
|
return ReactDOMServer.renderToString(
|
||||||
React.createElement("h2", null, "Hello world")
|
React.createElement("h2", null, "Hello world")
|
||||||
@@ -11,4 +9,4 @@ function renderOnClient() {
|
|||||||
React.createElement("h2", null, "Hello world"),
|
React.createElement("h2", null, "Hello world"),
|
||||||
document.getElementById('app')
|
document.getElementById('app')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user