Skip to content

Commit

Permalink
update form method handling example README
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesknelson committed Mar 18, 2019
1 parent f0d606c commit 5abbe48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/form-method-handling/README.md
@@ -1,6 +1,8 @@
# Basic Example
# `<Form method>` handling

This example just gives you static rendering and two pages.
This example just gives you a `<Form>` component that works both with and without JavaScript (or at least it would if the example included a server).

The `<Form>` component processes results client-side by calling `navigation.navigate({ method })`, with the route handler performing the actual work. When JavaScript is disabled, it falls back to use a standard POST request -- which you could handle with the same code on the server side.

To try it, change into this directory, install the dependencies, and then start the dev server or build the production version:

Expand Down

0 comments on commit 5abbe48

Please sign in to comment.