Skip to content

Commit

Permalink
retail list in reactR::component class list to #82 to insure `htm…
Browse files Browse the repository at this point in the history
…lwidgets` will recurse through extracting `htmlwidgets::JS` calls
  • Loading branch information
timelyportfolio committed Nov 24, 2023
1 parent fb3ba30 commit bd72b36
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: reactR
Type: Package
Title: React Helpers
Version: 0.5.0
Date: 2023-10-01
Version: 0.5.1
Date: 2023-11-24
Authors@R: c(
person(
"Facebook", "Inc"
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# reactR 0.5.1

* retain `list` in `reactR::component` classes #82

# reactR 0.5.0

* Update react to `18.2.0`

# reactR 0.4.4

* Update react to `16.12.0`
Expand Down
2 changes: 1 addition & 1 deletion R/reacttools.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ component <- function(name, varArgs = list()) {
stop("Component name must be specified and start with an upper case character")
}
component <- htmltools::tag(name, varArgs)
structure(component, class = c("reactR_component", oldClass(component)))
structure(component, class = c("reactR_component", oldClass(component), "list"))
}

#' React component builder.
Expand Down

0 comments on commit bd72b36

Please sign in to comment.