afzalsiddique

App.js

Sep 18th, 2021
599
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React,{useState, useReducer} from 'react'
  2. import FunctionContextComponent from './components/FunctionContextComponent'
  3. import {ThemeProvider} from "./ThemeContext";
  4.  
  5. export const ThemeContext = React.createContext()
  6. export default function UseContextDemo(){
  7.   return(
  8.     <>
  9.       <ThemeProvider>
  10.         <FunctionContextComponent/>
  11.       </ThemeProvider>
  12.     </>
  13.   )
  14. }
  15.  
RAW Paste Data