Advertisement
feighdead

appcontext.js

Oct 24th, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import React, { createContext, useState } from 'react';
  2.  
  3. export const AppContext = createContext();
  4.  
  5. export const AppProvider = ({ children }) => {
  6. const [company, setCompany] = useState('');
  7. const [role, setRole] = useState('');
  8. const [resume, setResume] = useState('');
  9.  
  10. return (
  11. <AppContext.Provider value={{ company, setCompany, role, setRole, resume, setResume }}>
  12. {children}
  13. </AppContext.Provider>
  14. );
  15. };
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement