UNPKG
@wq/material-web
Version:
latest (2.1.0)
next (3.0.0-alpha.0)
3.0.0-alpha.0
2.1.0
2.0.0
2.0.0-alpha.2
2.0.0-alpha.1
2.0.0-alpha.0
Web bindings for @wq/material
wq.io/@wq/material
wq/wq.app
@wq/material-web
/
src
/
components
/
FormatJson.js
15 lines
(12 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
React
from
"react"
;
import
PropTypes
from
"prop-types"
;
export
default
function
FormatJson
(
{ json }
) {
return
(
<
pre
>
<
code
>
{JSON.stringify(json, null, 4)}
</
code
>
</
pre
>
); }
FormatJson
.
propTypes
= {
json
:
PropTypes
.
object
, };