Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { createContext, useState } from 'react';
- export const AppContext = createContext();
- export const AppProvider = ({ children }) => {
- const [company, setCompany] = useState('');
- const [role, setRole] = useState('');
- const [resume, setResume] = useState('');
- return (
- <AppContext.Provider value={{ company, setCompany, role, setRole, resume, setResume }}>
- {children}
- </AppContext.Provider>
- );
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement