Object clone in react

I am making a simple react application which has some basic inputs like first name, last name etc.., The state of the inputs are handled in context api like, context.js import React, { useState } from …