FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
alloyeditor-react-component/src/server.js at master · ipeychev/alloyeditor-react-component · GitHub
ipeychev
/
alloyeditor-react-component
Public
Notifications
You must be signed in to change notification settings
Fork
12
Star
37
Code
Issues
5
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
alloyeditor-react-component
/
src
/
server.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (11 loc) · 370 Bytes
Breadcrumbs
alloyeditor-react-component
/
src
/
server.js
Copy path
File metadata and controls
15 lines (11 loc) · 370 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var
React
=
require
(
'react'
)
;
var
ReactDOMServer
=
require
(
'react-dom/server'
)
;
require
(
'babel-register'
)
;
var
AlloyEditorComponent
=
require
(
'./alloyeditor'
)
.
default
;
function
renderToString
(
)
{
var
content
=
ReactDOMServer
.
renderToString
(
React
.
createElement
(
AlloyEditorComponent
,
{
container
:
'editable'
}
)
)
;
return
content
;
}
module
.
exports
=
renderToString
;
Back
|
FazBrowse Home
|
New Git URL