@wq/material-web
Version:
Web bindings for @wq/material
17 lines (16 loc) • 383 B
JavaScript
import React from "react";
import PropTypes from "prop-types";
export default function FormatJson({ json }) {
return /*#__PURE__*/ React.createElement(
"pre",
null,
/*#__PURE__*/ React.createElement(
"code",
null,
JSON.stringify(json, null, 4)
)
);
}
FormatJson.propTypes = {
json: PropTypes.object,
};