Comments (1)
Hi @augustinusbader,
This is the intended data structure for the Title field and the Rich Text field. We have another library available: prismic-reactjs, that can help you render these fields either as HTML elements or as plain text.
It can also help you render your Link/Content Relationship fields as well as your Date/Timestamp fields.
You can check out our developer docs for React to see how to use this kit. There you will also find how to render all the other field types as well.
https://prismic.io/docs/reactjs/rendering/rich-text
I hope this clears things up for you!
from prismic-client.
Related Issues (20)
- Missing exports in requested module (skypack @prismicio/client) HOT 2
- Change `LinkResolver`'s default return type to `string | null | undefined` HOT 3
- Run CI with various TypeScript verions
- Migrate type tests from `ts-expect` to `vitest` built-in framework
- Align helpers to `fn(field, options)` interface
- Warn when endpoint is on `.prismic.io` domain instead of `.cdn.prismic.io` in development HOT 3
- Handle createClient custom fetch function errors HOT 3
- Ability to define the output location for the types output by codegen when using slicemachine HOT 2
- A helper to add/remove/edit data in a Slice Zone's Slices (`mapSliceZone()`) HOT 2
- Migration guide is unavailable HOT 2
- Type error after update to v7.1.0 HOT 9
- dangerouslyGetAll and double quotes in fulltext predicate HOT 1
- `routes` parameter doesn't resolve properly HOT 5
- imgix-url-builder types cannot be resolved HOT 1
- Prismic graphQL and TypeScript: some types mismatch HOT 1
- Typescript is missing next property in fetchOptions HOT 2
- A helper to check if a content relationship's field was queried HOT 1
- Type for `TitleField` missing `direction` field (mismatch in typings versus data from your endpoint) HOT 1
- Navigation between adjacent elements HOT 2
- Automatically handle expired refs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prismic-client.