Add most of components and prepare for V1 Release

This commit is contained in:
Fawad Mirzad
2021-02-13 16:09:48 +01:00
parent 1a5cf0b075
commit decca38b67
47 changed files with 2556 additions and 0 deletions

16
src/utils/lazyValue.js Normal file
View File

@@ -0,0 +1,16 @@
// This piece of code was orignally written by sindresorhus and can be seen here
// https://github.com/sindresorhus/lazy-value/blob/master/index.js
export default fn => {
let called = false
let ret
return () => {
if (!called) {
called = true
ret = fn()
}
return ret
}
}