import React, { useState, createContext, useContext } from "react";
const MyContext = createContext();
const Provider = props => {
const [value, set] = useState("initial");
return ;
};
const Value = () => {
const { value } = useContext(MyContext);
return
{value}
;
};
const SetValue = () => {
const { set } = useContext(MyContext);
return ;
};
export default function App() {
return (
);
}