UNPKG
rc-util
Version:
beta (5.0.0-beta.0)
latest (5.44.4)
5.44.4
5.44.3
5.44.2
5.44.1
5.44.0
5.43.1
5.43.0
5.42.1
5.42.0
5.41.0
5.40.1
5.40.0
5.39.3
5.39.2
5.39.1
5.39.0
5.38.2
5.38.1
5.38.0
5.37.0
5.36.0
5.35.1
5.35.0
5.34.1
5.34.0
5.33.1
5.33.0
5.32.4
5.32.3
5.32.2
5.32.1
5.32.0
5.31.2
5.31.1
5.31.0
5.30.0
5.29.3
5.29.2
5.29.1
5.29.0
5.28.0
5.27.2
5.27.1
5.27.0
5.26.0
5.25.3
5.25.2
5.25.1
5.25.0
5.24.8
5.24.6
5.24.5
5.24.4
5.24.3
5.24.2
5.24.1
5.24.0
5.23.0
5.22.5
5.22.4
5.22.4-1
5.22.4-0
5.22.3
5.22.2
5.22.1
5.22.0
5.21.5
5.21.4
5.21.3
5.21.2
5.21.1
5.21.0
5.20.1
5.20.0
5.19.6
5.19.5
5.19.4
5.19.3
5.19.2
5.19.1
5.19.0
5.18.1
5.18.0
5.17.0
5.16.1
5.16.0
5.15.0
5.14.0
5.13.2
5.13.1
5.13.0
5.12.2
5.12.1
5.12.0
5.11.1
5.11.0
5.10.2
5.10.1
5.10.0
5.9.9
5.9.8
5.9.7
5.9.6
5.9.5
5.9.4
5.9.3
5.9.2
5.9.1
5.9.0
5.8.1
5.8.0
5.7.0
5.6.6
5.6.5
5.6.4
5.6.3
5.6.2
5.6.1
5.6.0
5.5.1
5.5.0
5.4.0
5.3.5
5.3.4
5.3.3
5.3.2
5.3.1
5.3.0
5.2.1
5.2.0
5.1.0
5.0.7
5.0.6
5.0.5
5.0.4
5.0.3
5.0.1
5.0.0
5.0.0-beta.0
4.21.1
4.21.0
4.20.7
4.20.6
4.20.5
4.20.4
4.20.3
4.20.2
4.20.1
4.20.0
4.19.0
4.18.1
4.18.0
4.17.0
4.16.3
4.16.2
4.16.1
4.15.7
4.15.6
4.15.4
4.15.3
4.15.2
4.14.4
4.14.3
4.14.2
4.14.1
4.14.0
4.13.0
4.12.0
4.11.2
4.11.1
4.11.0
4.10.0
4.9.1
4.9.0
4.8.8
4.8.7
4.8.6
4.8.5
4.8.4
4.8.3
4.8.2
4.8.1
4.8.0
4.7.1
4.7.0
4.6.0
4.5.1
4.5.0
4.4.0
4.3.1
4.3.0
4.2.0
4.1.1
4.1.0
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.4.1
3.4.0
3.3.0
3.2.1
3.2.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.1
3.0.0
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.0.0
Common Utils For React Component
github.com/react-component/util
react-component/util
rc-util
/
es
/
Children
/
mapSelf.js
8 lines
•
180 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
React
from
'react'
;
function
mirror
(
o
) {
return
o; }
export
default
function
mapSelf
(
children
) {
// return ReactFragment
return
React
.
Children
.
map
(children, mirror); }