New "browse" UI
Also, separated out browse, ?meta, and ?module request handlers. Fixes #82
This commit is contained in:
13
modules/utils/markup.js
Normal file
13
modules/utils/markup.js
Normal file
@ -0,0 +1,13 @@
|
||||
import { createElement } from 'react';
|
||||
|
||||
export { createElement };
|
||||
|
||||
export function createHTML(code) {
|
||||
return { __html: code };
|
||||
}
|
||||
|
||||
export function createScript(script) {
|
||||
return createElement('script', {
|
||||
dangerouslySetInnerHTML: createHTML(script)
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user