<EmployeeContext.Provider>
value={addEmployee, DefaultData, sortedEmployees, deleteEmployee, updateEmployee}
{props.children};
</EmployeeContext.Provider>
here Im having problem as stated in title. please anyone help
Maybe you are using the EmployeeContext defined as type and not the one returned by createContext() like this:
const EmployeeContext = React.createContext(null);