HeadersFunction
react-router

HeadersFunction interface

HeadersFunction(args): HeadersInit

Parameters

  • args: HeadersArgs A function that returns HTTP headers to be used for a route. These headers will be merged with (and take precedence over) headers from parent routes.
Docs and examples CC 4.0