react-camelcase
v1.0.2
Published
Convert a dash/dot/underscore/space separated string to camelCase
Downloads
30
Maintainers
Readme
React camelCase
Convert a dash/dot/underscore/space separated string to camelCase:
foo-bar
→fooBar
Try in CodeSandbox
Install
$ npm install react-camelcase
Usage
import CamelCase from 'react-camelcase';
const App = () => (
<div>
<CamelCase string={'foo-bar'} />
</div>
);
//=> 'fooBar'
API
input
Type: string
License
MIT © Yohix