con.shareComponentTree()

con.shareComponentTree()

con.shareComponentTree() λ©”μ„œλ“œλŠ” React μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ—μ„œ μ»΄ν¬λ„ŒνŠΈ 트리λ₯Ό μ‹œκ°μ μœΌλ‘œ λ‚˜νƒ€λ‚΄κ³ , λ°œμ‹ μžμ™€ μˆ˜μ‹ μž κ°„μ˜ state와 propsλ₯Ό λΉ„κ΅ν•˜κΈ° μœ„ν•΄ μ‚¬μš©λ©λ‹ˆλ‹€.

⛔️
con.chat() λ©”μ„œλ“œ μ‹€ν–‰ 후에 μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
⛔️
con.createDebugRoom() λ©”μ„œλ“œ λ˜λŠ” con.enterDebugRoom() λ©”μ„œλ“œκ°€ λ°˜λ“œμ‹œ μ‹€ν–‰λœ ν›„ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
⛔️
react ν™˜κ²½μ—μ„œλ§Œ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Syntax

JS
Copied!
con.shareComponentTree('username')

con.shareComponentTree() λ©”μ„œλ“œλŠ” λ°œμ‹ μžκ°€ μ‹€ν–‰ν•˜λ©΄, μˆ˜μ‹ μžμ˜ 트리 정보λ₯Ό 가져와, λ°œμ‹ μžμ˜ μ½˜μ†”μ°½μ— νŠΈλ¦¬κ΅¬μ‘°κ°€ 좜λ ₯이 되고 ν•΄λ‹Ή μ»΄ν¬λ„ŒνŠΈμ˜ state와 props의 차이가 μžˆλŠ” κ²½μš°μ—λ§Œ μ»΄ν¬λ„ŒνŠΈ ν•˜λ‹¨μ— 정보λ₯Ό 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

Parameters

username
μœ ν˜• string
ν•„μˆ˜ μ—¬λΆ€ O
μ„€λͺ… μ»΄ν¬λ„ŒνŠΈ 트리λ₯Ό 비ꡐ할 μˆ˜μ‹ μžμ˜ μ΄λ¦„μž…λ‹ˆλ‹€.

Return value

μ—†μŒ ( undefined )

Example

μ—†μŒ