score:0

class EmployeeForm extends Component{
 handleSubmit = values => {
  this.setState({employee: values})
 }
 render() {
  <Address employee={this.state.employee} />
  <Employee onSubmit={this.handleSubmit} />
 }     
}

score:1

import React, { createContext, useState } from "react";

export const ActualContext = createContext();

const Contextt = (props) => {
  return (
    <ActualContext.Provider>
      {props.children}
    </ActualContext.Provider>
  );
};
export default Contextt;

Related Query

More Query from same tag