margaritahumanitarian / helpafamily

Use shorthand property syntax for object literals JS-0240
Anti-pattern
Minor
3 years ago3 years old
Expected property shorthand
119  const handleOnClick = async () =>
120    await handleSubmit({
121      amount: actionCost,
122      cause: cause,123    });
124  return (
125    <div
Expected property shorthand
28    return React.cloneElement(
29      child,
30      {
31        data: data,32
33        updateData: (childData) => {
34          updateData(childData);