Skip to content

Commit 184e728

Browse files
committed
Fix minor bug in scaffold template
1 parent e955fbc commit 184e728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/templates/widget_r.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%s <- function(message, width = NULL, height = NULL, elementId = NULL) {
99

1010
# describe a React component to send to the browser for rendering.
11-
component <- reactR::reactData(reactR::component("div", message))
11+
component <- reactR::reactData(htmltools::tag("div", list(message)))
1212

1313
# create widget
1414
htmlwidgets::createWidget(

0 commit comments

Comments
 (0)