Closed nathan-alden-sr closed 1 year ago
I'm in the process of migrating my app from React to SolidJS. One thing that seems to be lacking in <Title> is the ability to do what Helmet does in react-helmet-async:
<Title>
react-helmet-async
App.tsx:
App.tsx
const defaultTitle = "My Site"; ... return ( <HelmetProvider> <Helmet titleTemplate={`%s - ${defaultTitle}`} defaultTitle={defaultTitle} /> <MyPage /> </HelmetProvider> );
MyPage.tsx:
MyPage.tsx
return ( <Helmet title="My Page" /> )
This code replaces the existing <title> tag with <title>My Page - My Site</title>.
<title>
<title>My Page - My Site</title>
Closed in favor of https://github.com/solidjs/solid-meta/issues/17.
I'm in the process of migrating my app from React to SolidJS. One thing that seems to be lacking in
<Title>
is the ability to do what Helmet does inreact-helmet-async
:App.tsx
:MyPage.tsx
:This code replaces the existing
<title>
tag with<title>My Page - My Site</title>
.