GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Context API

Wanderson Vicente Portugiesisch 2 Karten

Karten in diesem Stapel (2)

  1. 1Criação básica do CONTEXT API// /src/context/ThemeContext.ts
    import { createContext } from 'react';
    const ThemeContext = createContext();
    export default ThemeContext;
  2. 2Tipando o CONTEXT API// ...
    type ThemeContextType = {
    theme: 'dark' | 'light';
    };
    const ThemeContext = createContext({} as ThemeContextType);

Informationen

Beschreibung
Context API
Erstellt von
Wanderson Vicente
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck