You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React 19 comes with some new functionalities and deprecations that should be addressed.
Deprecations
findDOMNode : used in the Map via react-transition-group lib (not updated since 2022) to display the map buttons tooltip
defaultProps : used in react-beautiful-dnd lib (which is deprecated and not maintained anymore) to drag and drop vias in itinerary tab
forwardRef : ref can now be passed directly into component props
Improvements
Context can now be used as a provider without using Context.Provider
Context can be consumed by using use instead of useContext. use can be used in a condition
Acceptance criteria
Remove findDOMNode warning by removing react-transition-group lib and replacing it by the native Popover API (available in React since v19)
Remove defaultProps warning by removing react-beautiful-dnd lib. Vias drag and drop feature isn't used by our current users (To be confirmed with a PO, the lib can be replaced by dndkit if we want to keep the feature)
All forwardRef have been replaced by standard ref
Context.Provider have been replaced by Context
When useful (call ocntext conditionally), replace useContext by use hook
The text was updated successfully, but these errors were encountered:
Description and goal
React 19 comes with some new functionalities and deprecations that should be addressed.
Deprecations
findDOMNode
: used in the Map viareact-transition-group
lib (not updated since 2022) to display the map buttons tooltipdefaultProps
: used inreact-beautiful-dnd
lib (which is deprecated and not maintained anymore) to drag and drop vias in itinerary tabforwardRef
: ref can now be passed directly into component propsImprovements
Context.Provider
use
instead ofuseContext
.use
can be used in a conditionAcceptance criteria
findDOMNode
warning by removingreact-transition-group
lib and replacing it by the native Popover API (available in React since v19)defaultProps
warning by removingreact-beautiful-dnd
lib. Vias drag and drop feature isn't used by our current users (To be confirmed with a PO, the lib can be replaced bydndkit
if we want to keep the feature)forwardRef
have been replaced by standardref
Context.Provider
have been replaced byContext
useContext
byuse
hookThe text was updated successfully, but these errors were encountered: