@seine/content

0.4.126 • Public • Published

Installation

Install React

yarn add react react-dom

Material UI

yarn add @material-ui/core @material-ui/icons @material-ui/styles

Usage

Rendering blocks

import { Content } from '@seine/content';

const data = [
  {
    "id": "5eec4cb7",
    "type": "page",
    "parent_id": null,
    "body": {},
    "format": {},
    "schema": null
  },
  {
    "id": "61272942",
    "type": "draft",
    "parent_id": "5eec4cb7",
    "body": {
      "blocks": [
        {
          "key": "2n1g7",
          "data": {},
          "text": "Text content",
          "type": "unstyled",
          "depth": 0,
          "entityRanges": [],
          "inlineStyleRanges": []
        }
      ],
      "entityMap": {}
    },
    "format": {},
    "schema": null
  },
]

function DataContent() {
  return <Content>{data}</Content>;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @seine/content

Weekly Downloads

435

Version

0.4.126

License

MIT

Unpacked Size

1.2 MB

Total Files

79

Last publish

Collaborators

  • mi6gan