Changelog
Source:NEWS.md
shiny.react 0.4.0
- Upgrade React to 18.3.1:
- Replace deprecated React API. React 18 deprecates (React 19 removes)
ReactDOM.render
andReactDOM.unmountComponentAtNode
.ReactDOM.createRoot
is used in place of those functions according to the React 19 migration guide. - Changed rendering mechanism of React components. This change is motivated by the fact that it’s impossible to call
ReactDOM.createRoot
on a container more than one time whileReactDOM.render
allowed that. Adata-react-id
attribute is used to find and render React roots instead of iterating over all nodes with.react-data
class.
- Replace deprecated React API. React 18 deprecates (React 19 removes)
shiny.react 0.3.0
CRAN release: 2022-12-25
- Render React asynchronously and only once Shiny is fully initialized:
-
reactOutput()
can now be nested. -
ShinyProxy
is no longer needed and was removed from the JavaScript API.
-
- Support rate limiting (debounce and throttle) in
InputAdapter
. -
updateReactInput()
now works correctly with tibbles.
shiny.react 0.2.2
-
updateReactInput()
applies namespace automatically. -
updateReactInput()
can be used to update components created with ButtonAdapter.
shiny.react 0.2.0
This is the first public release, with several big interface changes:
- Removed
withReact()
. Components now work without it! - Removed
make_input()
,make_output()
andmark_as_react_tag()
. Components can now be defined by combiningreactElement()
andasProps()
. - Removed
reactWidget()
- no longer applicable / necessary. - Renamed
ShinyComponentWrapper
toShinyBindingWrapper
and made it internal. - Added
setInput()
andtriggerEvent()
helpers.