How to use carbon-react - 1 common examples

To help you get started, we’ve selected a few carbon-react 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 Sage / carbon / fixtures / src / components / chrome.js View on Github external
const log = useCallback(({
    target: {
      name, id, value, checked
    }
  }, obj) => {
    ref.current = [...ref.current, {
      ...obj,
      guid: guid(),
      timestamp: new Date().toISOString(),
      name,
      id,
      value,
      checked
    }];
    setHistory(ref.current);
  }, [ref, setHistory]);

carbon-react

A library of reusable React components for easily building user interfaces.

Apache-2.0
Latest version published 3 days ago

Package Health Score

87 / 100
Full package analysis

Popular carbon-react functions

Similar packages