score:0

const Form = ({ add }: {add: any}) => (

score:0

import * as React from "react";
import { render } from "react-dom";
import Form from "./Form";
import "./styles.css";

function App() {
  const add = ({a,b} : { a: any, b: any}, ) => {
    console.log("a+b", a + b);
  };
  return (
    <div className="App">
      <Form add={add} />
    </div>
  );
}

const rootElement = document.getElementById("root");
render(<App />, rootElement);

score:0

const add = ({ a, b }: AddTerms) => {
  console.log("a+b", a + b);
};

Related Query

More Query from same tag