1.0.0 • Published 5 years ago

babel-plugin-recompose-set-display-name v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

babel-plugin-recompose-set-display-name

Automatically add displayNames to recompose components

Build Status Coverage Status

Example

const Foo = compose(
	withProps(...),
	withStateHandlers(...),
	setDisplayName('Foo'), // You don't have to write this! It will be added by Babel
)(() => (
	<div>
		foo
	</div>
))

Install

yarn add --dev babel-plugin-recompose-set-display-name