Skip to content

Next.js metadata vs React 19 title and meta components #75054

Discussion options

You must be logged in to vote

What I am trying to say here is that, you can just use the React APIs directly, because, Next.js implemented their metadata API, around them. It's just that their metadata API needs a server/build runtime, to generate the tags. And it has their benefits of you passing the metadata as objects, rather than having to map it all to JSX yourself. You can make API calls, to backend services, and hide that from the client, yada yada, introducing a layer of separation between what'll go in the body, and what stays in the head.

Next.js has been using React canary, where these API existed, for a very long time. So if using title directly, fits your use case, you might as well go for it. In other si…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@icyJoseph
Comment options

@vladshcherbin
Comment options

@icyJoseph
Comment options

Answer selected by vladshcherbin
@vladshcherbin
Comment options

@icyJoseph
Comment options

@icyJoseph
Comment options

@vladshcherbin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants