Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for multiple classes #124

Merged
merged 1 commit into from Jul 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/CSSTransition.js
@@ -1,11 +1,14 @@
import * as PropTypes from 'prop-types';
import addClass from 'dom-helpers/class/addClass';
import addOneClass from 'dom-helpers/class/addClass';

import removeClass from 'dom-helpers/class/removeClass';
import React from 'react';

import Transition from './Transition';
import { classNamesShape } from './utils/PropTypes';

const addClass = (node, classes) => classes.forEach(c => addOneClass(node, c));

const propTypes = {
...Transition.propTypes,

Expand Down