react-select
Version:
A Select control built with and for ReactJS
13 lines (9 loc) • 443 B
JavaScript
// @flow
import React, { type ComponentType } from 'react';
import { TransitionGroup } from 'react-transition-group';
import { type ValueContainerProps } from '../components/containers';
// make ValueContainer a transition group
const AnimatedValueContainer = (WrappedComponent: ComponentType<ValueContainerProps>) => (props: any) => (
<TransitionGroup component={WrappedComponent} {...props} />
);
export default AnimatedValueContainer;