Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- compose((state) => ({ open: state.get('id') === 'this-cool-tooltip', ...state.toJS() }))(
- ({ open, top, left }) => {
- if (!open) return null;
- return <div style={{ position: 'absolute', top, left }}>Tooltip content</div>;
- }
- );
Add Comment
Please, Sign In to add comment