diff --git a/DESCRIPTION b/DESCRIPTION index 4bc9950..ecf598b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: reactR Type: Package Title: React Helpers -Version: 0.1.4 -Date: 2017-11-21 +Version: 0.2.0 +Date: 2018-02-20 Authors@R: c( person( "Facebook", "Inc" diff --git a/LICENSE b/LICENSE index fdb5def..5ceb132 100644 --- a/LICENSE +++ b/LICENSE @@ -1,2 +1,2 @@ -YEAR: 2017 +YEAR: 2018 COPYRIGHT HOLDER: Kent Russell diff --git a/NEWS.md b/NEWS.md index c2e1cd1..cbbf7c1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,8 @@ +# reactR 0.2.0 + +* Update react and react-dom to 16.2.0 +* Add core-js shim so that React will show up in RStudio Viewer + # reactR 0.1.4 * Update react and react-dom to 16.1.1 diff --git a/README.md b/README.md index 5e53b19..147f035 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ devtools::install_github("timelyportfolio/reactR") library(reactR) library(htmltools) -browsable(attachDependencies( +browsable(tagList( tags$script( " ReactDOM.render( @@ -33,6 +33,8 @@ browsable(attachDependencies( ) " ), + #add core-js first to work in RStudio Viewer + html_dependency_corejs(), html_dependency_react() )) ``` @@ -44,10 +46,12 @@ library(reactR) library(htmltools) browsable( - attachDependencies( + tagList( tags$script( babel_transform('ReactDOM.render(