This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactHtmlParser, { processNodes } from 'react-html-parser'; | |
import generatePropsFromAttributes from 'react-html-parser/lib/utils/generatePropsFromAttributes'; | |
import ModuleName from 'mymodules/ModuleName'; | |
// This module lowercases tags, why? | |
const overrideComponents = { | |
modulename: ModuleName, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
edit: repeater({ | |
editing: true, | |
renderComponent: ({ attributes: { name }, setAttributes }) => | |
<MyComponent | |
name={ | |
<PlainText | |
value={ name } | |
placeholder={'Name'} | |
onChange={ value => setAttributes( { name: value } ) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'rxjs'; | |
import { Observable } from 'rxjs'; | |
Observable.prototype.debug = function(_message) { | |
const message = `EpicDebug: ${_message}`; | |
return this.do( | |
function(next) { | |
if (__DEV__) { |