create-runkit-content-from-function (npm): exposes a function which transforms js function to runkit string source
Keywords: rollup|react|react component|rollup react|component