Skip to content

Instantly share code, notes, and snippets.

@enricop89
Created November 4, 2022 07:52
Show Gist options
  • Save enricop89/acab5b9f368c73abbdda95ef893ff88f to your computer and use it in GitHub Desktop.
Save enricop89/acab5b9f368c73abbdda95ef893ff88f to your computer and use it in GitHub Desktop.

Revisions

  1. enricop89 created this gist Nov 4, 2022.
    6 changes: 6 additions & 0 deletions context.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    import { createContext } from "react";
    const UserLanguageContext = createContext({
    language: "en",
    setLanguage: () => {},
    });
    export default UserLanguageContext;