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

Move ReactClass, ReactElement and ReactPropTypes into "classic" #2700

Merged
merged 1 commit into from
Dec 13, 2014

Conversation

sebmarkbage
Copy link
Collaborator

This moves ReactClass, ReactElement and ReactPropTypes into a legacy folder
but since it's not quite legacy yet, I call it "classic".

These are "classic" because they are decoupled and can be replaced by
ES6 classes, JSX and Flow respectively.

This also extracts unit tests from ReactCompositeComponent, which was
terribly overloaded, into the new corresponding test suites.

There is one weird case for ReactContextValidator. This actually happens in
core, and technically belongs to ReactCompositeComponent. I'm not sure
we will be able to statically validate contexts so this might be a case
for dynamic checks even in the future. Leaving the unit tests in classic
until we can figure out what to do with them.

This is only moving tests around. No new tests nor changed behavior.

This moves ReactClass, ReactElement and ReactPropTypes into a legacy folder
but since it's not quite legacy yet, I call it "classic".

These are "classic" because they are decoupled and can be replaced by
ES6 classes, JSX and Flow respectively.

This also extracts unit tests from ReactCompositeComponent, which was
terribly overloaded, into the new corresponding test suites.

There is one weird case for ReactContextValidator. This actually happens in
core, and technically belongs to ReactCompositeComponent. I'm not sure
we will be able to statically validate contexts so this might be a case
for dynamic checks even in the future. Leaving the unit tests in classic
until we can figure out what to do with them.
@sebmarkbage sebmarkbage changed the title Move ReactClass, ReactElement and ReactPropTypes into "traditional" Move ReactClass, ReactElement and ReactPropTypes into "classic" Dec 13, 2014
@zpao
Copy link
Member

zpao commented Dec 13, 2014

👍

sebmarkbage added a commit that referenced this pull request Dec 13, 2014
Move ReactClass, ReactElement and ReactPropTypes into "classic"
@sebmarkbage sebmarkbage merged commit 6bb77b5 into facebook:master Dec 13, 2014
@zpao zpao mentioned this pull request Dec 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants