Confused how to work with components and loader/post method's #1593
-
Take this amazing example from @ryanflorence https://www.youtube.com/watch?v=jd_bin5HPrw This looks like a joy to work in, but the main thing i'm very confused about is this entire component is just a route file? What if you want a newsletter component that contains all the logic inside, I don't think you want to put all your component's logic in the main route file? How would you approach this if you want to have components? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can create React components as usual and use Remix's
<Form action="/projects/new" method="post" /> |
Beta Was this translation helpful? Give feedback.
You can create React components as usual and use Remix's
<Form>
inside of them. Forms have theaction
attribute, and as the docs state: