We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af330c9 commit 5a80783Copy full SHA for 5a80783
R/reacttools.R
@@ -84,7 +84,8 @@ React <- structure(
84
#'
85
#' @examples
86
reactMarkup <- function(tag) {
87
- # TODO ensure tag is either an htmltools tag or a string (throw otherwise)
88
- list(tag = tag)
+ stopifnot(class(tag) == "shiny.tag"
+ || (is.character(tag) && length(tag) == 1))
89
+ list(tag = tag, class = "reactR.markup")
90
}
91
0 commit comments