React Router

useFetcher

Track route loading or submission independent of ordinary navigation.

Formal Syntax & Structure

react syntaxreact
const fetcher = useFetcher();

Working Example

Example Snippetreact
<fetcher.Form method="post"><button>Check</button></fetcher.Form>
React Reference