Skip to content

Releases: dkozar/react-liberator

Implemented onActivate and onDeactivate callbacks

13 Aug 22:23
Compare
Choose a tag to compare

After the component rendered via Liberator, the parent component's refs don't point to child components anymore.

To get to child's DOM you should use the onActivate callback, providing you with the following information:

  • layer - the layer to which liberated components are rendered to (multiple Liberators could render into the same layer)
  • wrapper - wrapper element for component rendered by THIS Liberator
  • children - original children provided to THIS Liberator

Stable version + 6 demos

05 Jun 09:25
Compare
Choose a tag to compare
1.0

Added Demo 6.