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(

Powered By React/JSX

,document.body)') ), + # add core-js shim first for React in RStudio Viewer + html_dependency_corejs(), html_dependency_react() ) ) diff --git a/cran-comments.md b/cran-comments.md index 4933b3b..27253c2 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,10 +1,6 @@ ## Comments - **Resubmission** - - 1. Changed license to MIT to mirror change to MIT by Facebook/React - 2. "React" should now be all uppercase - 3. Do not want to add executable `babel_transform` example since many users do not use and do not want to have to install `V8`. Use of `V8` also makes testing difficult. However, it can be a very powerful tool when using with React, so I most definitely want to keep `babel_transform`. +none ## Test environments * local Windows 10 install, R 3.4.0