ferdaber / react-transient Goto Github PK
View Code? Open in Web Editor NEWSimple, elegantly declarative React component transitions. ๐ฌ๏ธ
License: MIT License
Simple, elegantly declarative React component transitions. ๐ฌ๏ธ
License: MIT License
TransitionWrapper
is only used to be able to get a ref that ReactDOM.findDOMNode
can use. Use Object.prototype.isPrototypeOf
to check that a given ReactElement
is inherited from those classes
When the React version is <16, TransitionWrapper
should not attempt to render multiple children at once as that's invalid. It should render the children wrapped in a div
and provide an optional component
prop to override the component.
Use React.version
to detect the version
Classes are lingering on rendered DOM nodes when a transition state is interrupted, due to the onAfter[event]
callbacks not being called to clean up those classes
Using JS hooks on top of auto-css transitions may cause issues with callbacks, add a prop to disable auto-css transition end detection.
The getters this.childRef
and this.oldChildRef
are lazily-evaluated in callbacks that manipulate DOM. Rapid transitions can sometimes cause those getters to evaluate to null when they really shouldn't have. Inside a transition the DOM element that a callback is manipulating should always be the same, so they can be passed in as a parameter so it's safely stored without being nullified.
Cancel callbacks are currently only called when timeouts exist for a certain transition event, but those timeouts are only set when duration or auto CSS is used.
The cancel callbacks should be refactored to accommodate for JS-only transition hooks (a component is receiving another child to render before done
callback is called in onAppear
, onEnter
and onLeave
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.