@uiw/react-markdown-preview-example
Version:
Preview the markdown files and run the React examples in the documentation.
15 lines (14 loc) • 346 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Example = Example;
var _react = require("react");
var _store = require("./store");
function Example(_ref) {
var children = _ref.children;
(0, _react.useEffect)(function () {
return _store.store.setExample(children);
}, [children]);
return null;
}