Skip to content

Commit bd72b36

Browse files
retail list in reactR::component class list to #82 to insure htmlwidgets will recurse through extracting htmlwidgets::JS calls
1 parent fb3ba30 commit bd72b36

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: reactR
22
Type: Package
33
Title: React Helpers
4-
Version: 0.5.0
5-
Date: 2023-10-01
4+
Version: 0.5.1
5+
Date: 2023-11-24
66
Authors@R: c(
77
person(
88
"Facebook", "Inc"

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# reactR 0.5.1
2+
3+
* retain `list` in `reactR::component` classes #82
4+
5+
# reactR 0.5.0
6+
7+
* Update react to `18.2.0`
8+
19
# reactR 0.4.4
210

311
* Update react to `16.12.0`

R/reacttools.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ component <- function(name, varArgs = list()) {
3232
stop("Component name must be specified and start with an upper case character")
3333
}
3434
component <- htmltools::tag(name, varArgs)
35-
structure(component, class = c("reactR_component", oldClass(component)))
35+
structure(component, class = c("reactR_component", oldClass(component), "list"))
3636
}
3737

3838
#' React component builder.

0 commit comments

Comments
 (0)