import * as udiboReactApp from "https://deno.land/x/udibo_react_app@0.16.0/mod.tsx";
Classes
Converts errors into error responses that the client can convert back into HttpErrors. | |
An error for an HTTP request. |
Variables
A function that takes a string key representing an environment variable and returns its value.
If the code is running on the server, it uses the | |
A function that returns a boolean indicating whether the code is running in the browser or not. | |
A function that returns a boolean indicating whether the code is running in the development environment or not. | |
A function that returns a boolean indicating whether the code is running in the production environment or not. | |
A function that returns a boolean indicating whether the code is running on the server or not. | |
A function that returns a boolean indicating whether the code is running in the test environment or not. |
Functions
A component that captures any errors within the boundary.
Unlike | |
A function that creates a React context object for the app. It takes an optional generic parameter representing the type of the initial value of the context. The context object created can hold any app-specific data, and its state will be serialized and shared with the browser. | |
A simple error fallback component that can be used to show the error and provide a button for trying again.
It takes a | |
This function is used to hydrate the application in the browser. It turns the server rendered application into a single-page application (SPA). Hydration is not required if only server-side rendering is desired. | |
Check if the response is an error response that can be converted to an HttpError. | |
Checks if the value as an HttpError. | |
f lazy | A function used to lazily load a component. This function takes in a factory that returns Promise that resolves to a React component.
The purpose of this function is to automatically add error boundaries to routes with an |
A component that can be used to throw a 404 not found error. It is used as the default wildcard route at the top level of the app. | |
A hook that automatically resets the error boundary if the location changes.
It takes a | |
A higher-order component that wraps a component with an |
Interfaces
Used to represent environment variables shared with the browser. | |
A format for sharing errors with the browser. With a consistent format for error responses, the client can convert them back into an HttpErrors. | |
Options for initializing an HttpError. | |
An interface that defines the configuration for the application's hydration. |
Type Aliases
An interface that defines a route file.
A route file exports a react component by default.
It can optionally export an |