Home > General Components > FormatJson

FormatJson

@wq/material’s <FormatJson/> component dumps the contents of the json prop with a fixed-with font. <FormatJson/> is analogous to <pre><code> in HTML.

Source

While @wq/react defines a placeholder implementation, @wq/material’s versions are more useful as reference:

  • FormatJson.js (@wq/material-web)
  • FormatJson.js (@wq/material-native)