React Prismic CMS
Set of declarative components to query content published in the headless CMS prismic.io
Installation
$ yarn add react-prismic-cms
Usage
import React from "react";import ReactDOM from "react-dom";import Prismic from "react-prismic-cms/components/Prismic";import QueryAt from "react-prismic-cms/components/QueryAt";import Vegetables from "./vegetables";import "./styles.css"; { return <div ="App"> <Prismic ="react-prismic-cms"> <QueryAt ="document.type" ="vegetables" = /> </Prismic> </div> ;} const rootElement = document;ReactDOM;