0.0.25 • Published 1 year ago
essential-components v0.0.25
ESSENTIAL-COMPONENTS
GUIDE TO USE
FOR
<ul>
<For list={['a', 'b', 'c']} each={(el, key) => <li key={key}>{el}</li>} />
</ul>
IF
<If condition={count > 0}>
<p>TRUE</p>
</If>
IF-ELSE
<If condition={count > 0} otherwise={<p>FALSE</p>}>
<p>TRUE</p>
</If>
TEST
const test = {
test1: 'test1',
test2: 'test2',
test3: 'test3',
test4: 'test4',
test5: 'test5',
test6: 'test6',
}
<Test data={test}/>
/*
OUTPUT BROWSER:
{
test1: 'test1',
test2: 'test2',
test3: 'test3',
test4: 'test4',
test5: 'test5',
test6: 'test6',
}
*/
CLASSNAMES
<div
classNames={classNames([
'flex',
'justify-content-cente',
'align-items-center',
])}
>
...
</div>
IMPORT TO REACT COMPONENTS
import { If, For, Test, classNames } from 'essential-components/Components'
INSTALL
npm i essential-components
0.0.20
1 year ago
0.0.21
1 year ago
0.0.22
1 year ago
0.0.24
1 year ago
0.0.25
1 year ago
0.0.16
1 year ago
0.0.17
1 year ago
0.0.18
1 year ago
0.0.19
1 year ago
0.0.14
1 year ago
0.0.15
1 year ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago