Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a useSingleton hook (#133)
* useSingleton * Added tests * Drop onComponent method * Code style * Update README.md * Clarify version for useSingleton, tweak wording
- Loading branch information
Showing
6 changed files
with
321 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import tippy from 'tippy.js'; | ||
import Tippy from './Tippy'; | ||
import TippySingleton from './TippySingleton'; | ||
import {useSingleton} from './hooks'; | ||
|
||
export default Tippy; | ||
export {TippySingleton, tippy}; | ||
export {TippySingleton, useSingleton, tippy}; |
Oops, something went wrong.