Skip to content

Instantly share code, notes, and snippets.

@csantiago132
Created February 26, 2020 00:44
Show Gist options
  • Select an option

  • Save csantiago132/d7a87899b2fd2b58963f9b8b4ef6df43 to your computer and use it in GitHub Desktop.

Select an option

Save csantiago132/d7a87899b2fd2b58963f9b8b4ef6df43 to your computer and use it in GitHub Desktop.

Revisions

  1. csantiago132 created this gist Feb 26, 2020.
    12 changes: 12 additions & 0 deletions AppWithProviderExample.jsx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    import React from "react";
    import { ContextProvider } from "./path to provider";

    export default function App() {
    return (
    <ContextProvider>
    {
    // ... the rest of your app
    }
    </ContextProvider>
    );
    }