Context API Here I have used two component called Button.jsx and Result.jsx. Using Context APi I have share the state of button in buttonContext and get that response in result component.