what is the replacement for setCompositionRoot() method in vaadin Flow ?

I am working vaadin 14 upgrade from vaadin 8. I just want to know the replacement for setCompositionRoot() method in vaadin 14 Flow.

Please advise / suggest the possible alternate for setCompositionRoot() in vaadin 14 .

This question is relevant only for CustomField. Similar component exists in Vaadin 14 also. But the API is quite different. See example here, the equivalent method is there just add(component);

https://vaadin.com/components/vaadin-custom-field/java-examples