How make Grid render a Label Component ?

Anastasia Smirnova:
Hi Ramon,

you have to specify the Renderer for column to display a Label as a component.

https://vaadin.com/docs/-/part/framework/components/components-grid.html#components.grid.renderer
For example in Vaadin8 you can do it like this:

Grid<Person> grid = new Grid<>();
/*Initialization */
grid.addColumn(p -> new Label("Label"), new ComponentRenderer()); // will display the Label

Hopefully it helps : ),

Best regards,
Anastasia

How can i do this in Vaadin 14? Thanks!