Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

react ts createcontext

import * as React from "react";

interface AppContextInterface {
  name: string;
  author: string;
  url: string;
}

const AppCtx = React.createContext<AppContextInterface | null>(null);
Source by react-typescript-cheatsheet.netlify.app #
 
PREVIOUS NEXT
Tagged: #react #ts #createcontext
ADD COMMENT
Topic
Name
5+1 =