con.shareComponentTree()
con.shareComponentTree() λ©μλλ React μ ν리μΌμ΄μ μμ μ»΄ν¬λνΈ νΈλ¦¬λ₯Ό μκ°μ μΌλ‘ λνλ΄κ³ , λ°μ μμ μμ μ κ°μ stateμ propsλ₯Ό λΉκ΅νκΈ° μν΄ μ¬μ©λ©λλ€.
con.chat() λ©μλ μ€ν νμ μ¬μ©ν μ μμ΅λλ€.
con.createDebugRoom() λ©μλ λλ con.enterDebugRoom() λ©μλκ° λ°λμ μ€νλ ν μ¬μ©ν μ μμ΅λλ€.
react νκ²½μμλ§ μ¬μ©ν μ μμ΅λλ€.
Syntax
JS
con.shareComponentTree('username')
con.shareComponentTree() λ©μλλ λ°μ μκ° μ€ννλ©΄, μμ μμ νΈλ¦¬ μ 보λ₯Ό κ°μ Έμ, λ°μ μμ μ½μμ°½μ νΈλ¦¬κ΅¬μ‘°κ° μΆλ ₯μ΄ λκ³ ν΄λΉ μ»΄ν¬λνΈμ stateμ propsμ μ°¨μ΄κ° μλ κ²½μ°μλ§ μ»΄ν¬λνΈ νλ¨μ μ 보λ₯Ό νμΈν μ μμ΅λλ€.
Parameters
- username
- μ ν string
- νμ μ¬λΆ O
- μ€λͺ μ»΄ν¬λνΈ νΈλ¦¬λ₯Ό λΉκ΅ν μμ μμ μ΄λ¦μ λλ€.
Return value
μμ ( undefined )
Example
μμ