For exemple i would like to do a custom slideshow block and have image macro render
Should render
<div …>
/* | |
Monkey patching of React to automagicly use functionnal components as functions for a real gain in perforance | |
See article "https://medium.com/missive-app/45-faster-react-functional-components-now-3509a668e69f" | |
WARNING: do not use if you don't understand what you are doing and the conséquences of such patching | |
*/ | |
function patchReactForFunctionnalComponent(React) { | |
React.Component.prototype.__is_react_component__ = true; | |
var ReactcreateElement = React.createElement; | |
React.createElement = function (type, config, children) { |