Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/udibo_react_app/env.ts

A React Framework for Deno that makes it easy to create highly interactive apps that have server side rendering with file based routing for both your UI and API.
Latest
import * as udiboReactApp from "https://deno.land/x/udibo_react_app@0.19.0/env.ts";

Variables

A constant used for internal purposes only.

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 Deno.env.get function to retrieve the value of the environment variable. Otherwise it retrieves it from the browser's app.env object. The app.env object is used for internal purposes only.

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 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.

Interfaces

Used to represent environment variables shared with the browser.

Type Aliases

A type representing the browser's window object augmented with an app property that is used for internal purposes only.