Support render function in relation toDOM