• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

reactRouter7Example

Full-stack example ReactRouter7 project
Public
Like
3
reactRouter7Example
Home
Code
6
backend
2
frontend
3
routes
10
shared
2
README.md
TODO.md
Branches
4
Pull requests
1
Remixes
2
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
TODO.md
Code
/
TODO.md
Search
4/10/2025
Viewing readonly version of main branch: v111
View latest version
TODO.md

Remix questions

Action redirects

When you submit a new message board thing, it doesn't redirect to that newly created thing after it's done. It just shows a lame empty page.

I am returning a redirect in the action, but that is now returned as a full response. How do I just get the relevant redirect data on the client, so the client can do the redirect?

Or is it better to send over the data from the server and skip another loader?

Clearing form state after submission

After

Other todos

  • Get OpenTownie or Gemini or Claude or OpenAI to synthesize the core of these patterns into a prompt we can use to make more ReactRouter apps, such as...
  • Convert this or into the basic react router guest book (and preserve this forum app in another project?)
  • Sometimes when you hit the back button, you get the JSON representation of the page, ie its loader. That's weird! I wonder if I can get a solid repro of that.
  • To what extent can these patterns be packaged up into a Val Town Router project? Would be neat to get the version pinning thing all centralized, can this as-a-library be that centralized place?
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.