About 47 results
Open links in new tab
  1. Roact Documentation - GitHub Pages

    This documentation is based on the structure of React's documentation, but is a work in progress. Many things from React also apply to Roact, but if you find anything missing or incorrect, open an issue on …

  2. Using Roact-Rodux - Roact-Rodux Documentation - GitHub Pages

    Now, whenever the store updates, your connected components will receive updated data and re-render! In many ways, Roact-Rodux works just like react-redux. The public API is almost identical and most …

  3. Elements - Roact Documentation - GitHub Pages

    Because creating elements is fast, this is no big deal. You can create an element using Roact.createElement. You will need to pass it a Roblox class name as the first argument (this is a …

  4. Components - Roact Documentation - GitHub Pages

    In our previous examples, we passed strings to Roact.createElement to create elements that represented Roblox Instances. We can also pass our custom components to create elements that …

  5. Bindings and Refs - Roact Documentation - GitHub Pages

    While bindings are most helpful for individual props, we often want to access an entire Roblox Instance and its methods. Refs are a special type of binding that point to Roblox Instance objects that are …

  6. API Reference - Roact Documentation - GitHub Pages

    Creates a Roblox Instance given a Roact element, and optionally a parent to put it in, and a key to use as the instance's Name. The result is a RoactTree, which is an opaque handle that represents a tree …

  7. Context - Roact Documentation - GitHub Pages

    Roact's Context API is based on React's Context API. Context is commonly used to implement features like dependency injection, dynamic theming, and scoped state storage.

  8. Hello, Roact! - Roact Documentation - GitHub Pages

    Hello, Roact! Info These examples assumes that you've successfully installed Roact into ReplicatedStorage! Add a new LocalScript object to StarterPlayer.StarterPlayerScripts either in …

  9. Events - Roact Documentation - GitHub Pages

    Events Roact manages Instance event connections automatically as part of rendering. To connect to an event, pass a prop with Roact.Event.EVENT_NAME as the key and a function as the value. Roact …

  10. Portals - Roact Documentation - GitHub Pages

    Portals Portals are a special kind of component provided by Roact that enable components to render objects into a separate, non-Roact Instance.