How to use the @reach/utils.assignRef function in @reach/utils

To help you get started, we’ve selected a few @reach/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reach / reach-ui / packages / accordion / src / index.js View on Github external
node => {
      if (node) {
        assignRef(ref, node);
        if (!bypass && node.textContent && domText !== node.textContent) {
          setDomText(node.textContent);
        }
      }
    },
    [bypass, domText, ref]

@reach/utils

Internal, shared utilities for Reach UI.

MIT
Latest version published 2 years ago

Package Health Score

85 / 100
Full package analysis

Similar packages