Skip to content

Instantly share code, notes, and snippets.

@marcusradell
Created July 3, 2017 13:59
Show Gist options
  • Save marcusradell/d7a20ce9cedbed3065bd42999b32de25 to your computer and use it in GitHub Desktop.
Save marcusradell/d7a20ce9cedbed3065bd42999b32de25 to your computer and use it in GitHub Desktop.
Twitter question
// I think it might lose its appeal, but if you need to transform for some technical reason, it might work.
// toKebab needs to be implemented elsewhere.
const kebabProps = toKebab({
someProp: 'foo',
someOtherProp: 'bar'
})
const View = () => return <MyComponent {...kebabProps} anotherOtherProp={'qux'} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment