lessons/ epicreact

Context Module Function, solution

Our assignment was to take the handleSubmit function logic and move it to a Context Module Function.

With this new function, we need to identify all of the missing dependencies and take them as functions arguments.

Then we need to return this promise — so future consumers can continue the promise chain (with additional functionality).

Import and call our function