Minor Changes
-
BREAKING CHANGE: The component runtime has moved from
@remix-run/uiback to@remix-run/component.The package provides a component runtime with browser rendering and hydration, server rendering, JSX runtimes, testing helpers, styles, and general-purpose mixins.
import { createRoot, css, on } from '@remix-run/component'
Applications using the
remixpackage can access the same APIs fromremix/componentand its corresponding subpaths.For consumers upgrading from
@remix-run/component@0.7, theaddEventListeners,keysEvents,pressEvents, andPressEventroot exports are no longer available. Animation APIs are now imported from@remix-run/ui/animation:-import { animateEntrance, spring } from '@remix-run/component' +import { animateEntrance, spring } from '@remix-run/ui/animation'