Hello,
Your HTML will only render correctly if you knit it with markdown (See the example on the site)
For your code, it would look like this:
---
pagetitle: "Example"
output: html_document
---
```{r include=FALSE}
library(reactable)
library(htmltools)
myData = data.frame(country=c("argentina","brazil"),value=c(1,2))
example<- reactable(
myData,
class = "example-tbl"
)
```
```{r echo=FALSE}
div(class = "example",
div(class = "example-header",
div(class = "example-title", "Top CRAN Packages of 2019"),
example
)
)
```
The names of the div() classes don't matter at this point as there is no custom CSS attached to this (in the example on the site there is)
Hope this helps,
PJ