How to use the actionsack.useLocalStorage function in actionsack

To help you get started, we’ve selected a few actionsack 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 carbon-app / carbon / components / ImagePicker.js View on Github external
function GeneratePaletteSetting({ onChange }) {
  const [enabled, setEnabled] = useLocalStorage('CARBON_GENERATE_COLOR_PALETTE')
  React.useEffect(() => void onChange(enabled), [enabled, onChange])

  return (
    
  )
}

actionsack

React UX components for handling common interactions

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis