UNPKG
@tomdamri/rudolph
Version:
latest (1.0.8)
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
generate react component folder
@tomdamri/rudolph
/
templates
/
useComponent.ts
13 lines
(9 loc)
•
224 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ useState }
from
'react'
;
export
const
use{{componentName}} =
() =>
{
const
[state, setState] =
useState
(
null
);
// Add your component logic here
return
{ state, setState, }; };