use renderElement in create-child