"use strict";

var _ = _interopRequireDefault(require(".."));

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var exampleCode = "\nconst list:any = Object.keys(data)?.map(item => item.id)?.sort((a, b) => a.index - b.index);\n".trim();
var multiExampleCode = "\nimport React, { useState } from \"react\";\n\nfunction Example() {\n  const [count, setCount] = useState(0);\n\n  return (\n    <div>\n      <p>You clicked {count} times</p>\n        <button onClick={() => setCount(count + 1)}>\n        Click me\n      </button>\n    </div>\n  );\n}\n".trim();

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", null, "\u5355\u884C\u4EE3\u7801"), /*#__PURE__*/_react["default"].createElement(_["default"], {
  code: exampleCode
}), /*#__PURE__*/_react["default"].createElement("p", null, "\u591A\u884C\u4EE3\u7801"), /*#__PURE__*/_react["default"].createElement(_["default"], {
  code: multiExampleCode,
  type: "number"
})), document.getElementById('code-snippet-demo-1'));