Crawl react pages in Java

I’m writing a web crawler in Java. The target is a website written in react. I use selenium to render the page to a DOM tree:

HtmlUnitDriver unitDriver = new HtmlUnitDriver();
WebElement body = unitDriver.findElement(By.tagName("body"));

What I get for body is:

<body class="">

Which is almost nothing. Does selenium render react pages ? I also tried this on and it worked fine.