@re-up/sandbox
v0.0.17
Published
Sandbox is our publishing test module. There's only one function on this library and it's called condish. It accepts 2 nullable args. Useful for conditional rendering and easy to read.
Downloads
9
Readme
@re-up/sandbox
install:
bun i @re-up/sandbox
usage:
import {condish} from '@re-up/sandbox'
function App(){
const {loading, data} = useFetch()
const ConditionalComponent = useCallback(() => {
const options = condish(<Loading/>, <Viewer {...data}/>)
return <>{options.get(loading)}<>
}, [loading, data])
return <ConditionalComponent />
}