Answers for "child components props not changing with parent"

2

child components props not changing with parent

const Parent = () => {
  const propsToPass = {};
  <Child key={JSON.stringify(propsToPass)}  {...propsToPass} />
}

const Child = (props) => <div> child </div>;
Posted by: Guest on July-21-2021

Code answers related to "child components props not changing with parent"

Browse Popular Code Answers by Language