Skip to content
#

babel-macros

Here are 34 public repositories matching this topic...

yuchi
yuchi commented Nov 29, 2018

Since this is a macro, there’s little to no way to trace which references are placed in the inputs array.

An initial proposal syntax could be this:

function MyComponent() {
  const { magnitude } = props;
  const [counter, setCounter] = useState();
  const handleClick = useAutoCallback(event => {
    setCounter(counter * magnitude);
  }, trace);
  // ↑↑↑↑↑
}

Which woul

enhancement help wanted good first issue

Improve this page

Add a description, image, and links to the babel-macros topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the babel-macros topic, visit your repo's landing page and select "manage topics."

Learn more