Skip to content

Commit

Permalink
fix: re-export other server-compatible components
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Jun 28, 2024
1 parent 80c3576 commit a7eebf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/core/src/rsc/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './components/BlocksRenderer';
export * from '../react/components/HtmlDecoder';
export * from '../react/components/SafeHtml';
5 changes: 4 additions & 1 deletion projects/wp-nextjs-app/src/app/(single)/[...path]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { HtmlDecoder } from '@headstartwp/core/react';
import { HeadstartWPRoute, queryPost } from '@headstartwp/next/app';

const Single = async ({ params }: HeadstartWPRoute) => {
Expand All @@ -10,7 +11,9 @@ const Single = async ({ params }: HeadstartWPRoute) => {

return (
<article>
<h1>{data.post.title.rendered}</h1>
<h1>
<HtmlDecoder html={data.post.title.rendered ?? ''} />
</h1>
</article>
);
};
Expand Down

0 comments on commit a7eebf7

Please sign in to comment.