@rbxts/react-roblox
Advanced tools
Comparing version 0.1.2 to 0.2.0
{ | ||
"name": "@rbxts/react-roblox", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"author": "jsdotlua", | ||
@@ -14,5 +14,5 @@ "license": "MIT", | ||
"@rbxts/react-internal": "^0.2.2", | ||
"@rbxts/shared-internal": "^0.2.1", | ||
"@rbxts/react-reconciler-internal": "^0.2.1", | ||
"@rbxts/scheduler-internal": "^0.2.1" | ||
"@rbxts/scheduler-internal": "^0.2.1", | ||
"@rbxts/shared-internal": "^0.2.1" | ||
}, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
@@ -22,1 +22,13 @@ import Roact from "@rbxts/roact"; | ||
export function createLegacyRoot(container: Instance, options?: RootOptions): Root; | ||
/** | ||
* | ||
* @param children Anything that can be rendered with React, such as a piece | ||
* of JSX (e.g. `<div />` or `<SomeComponent />`), a | ||
* [Fragment](https://react.dev/reference/react/Fragment) (`<>...</>`), a | ||
* string or a number, or an array of these. | ||
* @param container The Roblox instance to portal to. | ||
* @param key A unique string or number to be used as the portal’s [key](https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key). | ||
* @returns A React element that can be included into JSX or returned from a React component. | ||
*/ | ||
export function createPortal(children: Roact.Element, container: Instance, key?: string): Roact.Element; |
112122
32