Comments (3)
This fix did work and it seems to be the best solution currently. For more context I followed @brohvis suggestion and copied the NewletterForm source code from (https://github.com/timlrx/pliny/blob/main/packages/pliny/src/ui/NewsletterForm.tsx) and added it to my app directory with use client
at the top. Then in Main.tsx I simply changed it to import to that file instead of from pliny.
from tailwind-nextjs-starter-blog.
Hey there, bear with me, as I'm learning too, but - I got around this by taking a look in the repository for Pliny and when I saw this note on the Pliny page.
Note: The previous cli and starter template have been deprecated. Please use the new components directly in your favourite Next 13 websites.
I then (believe the term is "scaffolded"?), took the source "NewsletterForm" that was being imported, (from here)and then added use client
and I was able to call and use the form and verify that it still works, as well as style the button and divs inline with tailwind. Can't speak to the "correct"ness or anything as I'm just getting started but it works and it's pretty!
from tailwind-nextjs-starter-blog.
Thank you for responding I will look into this solution. I appreciate you sharing it. I was discussing this in a Discord and I think this feels more like a solution that I am comfy exploring.
from tailwind-nextjs-starter-blog.
Related Issues (20)
- adding Authjs HOT 1
- [Feature request] navbar dropdown HOT 4
- Font is showing in production but not in local HOT 1
- Add pagination to the tags page HOT 3
- Fails to deploy to Github Pages HOT 4
- Unable to install HOT 3
- Where should I put this script? HOT 1
- Blog Posts with 'draft' Status Incorrectly Displayed HOT 2
- deploy vercel go wrong HOT 8
- Collapsable Markdown Headers/Lists HOT 1
- Add support for blog Pin to Top HOT 5
- How to enable discussions for a blogHow to enable discussions for a blog HOT 1
- Buttondown Api i can't generate help HOT 3
- Tags not updated HOT 2
- New Icons added request HOT 3
- Help with banner to visible in the homepage of the blog and inside HOT 2
- Im using convertkit but the newsletter not working!! HOT 1
- Add z-index to ThemeSwitch menu HOT 2
- How can I use Disqus in the app, help wanted HOT 2
- Question about tap to top on status bar
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 tailwind-nextjs-starter-blog.