dipeshrai123 / react-ui-animate Goto Github PK
View Code? Open in Web Editor NEWReact library for gestures and animation :computer:
Home Page: https://react-ui-animate.js.org/
License: MIT License
React library for gestures and animation :computer:
Home Page: https://react-ui-animate.js.org/
License: MIT License
useOutsideClick
hook to handle the dismiss on outside click when we click on the open button the modal doesn't appear. It is as soon as we click the open modal button the outside click callback is instantly fired which causes the issueWork on branch: fix/useOutsideClick
from base v2.0.0
Create a PR against it after completing the issue with the solved video output.
Issue:
ValueType
while assigning the value.Expected Result:
A possible snippet could be :
useDisableScroll = (shouldDisable: boolean) => {
React.useEffect(() => {
document.body.style.overflow = shouldDisable ? 'hidden' : 'auto'
}, [shouldDisable])
}
useMountedBlock hook on false state unmounts the component immediately without any transition.
Issue:
Currently, MountedBlock and TransitionBlock are separate components.
Expected Result:
MountedBlock and TransitionBlock should be merged into one HOC. It lets devs to use same component whatever the use-case. You might want to use the prop to determine whether the component has to be mounted or not. Please make sure to use the prop names more sensible and short
Possible snippet:
export function useMountedValue(state: boolean, config: UseMountConfig) {
const mv = useMount(state, config);
return (
cb: (value: { value: FluidValue }, mounted: boolean) => React.ReactNode
) => mv((a, m) => cb({ value: a }, m));
}
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.