Comments (1)
Hi! You can write function components like this: https://roblox.github.io/roact/guide/components/#function-components
That documentation should tell you what you need to know. Function components in Roact work a lot like function components in React 15 (language differences aside), so https://react-legacy.netlify.app/docs/components-and-props.html may also help.
from roact.
Related Issues (20)
- GUI not updating when Provider's value changes
- How to comunicate with sibling component ? HOT 1
- Is there a Roact version of React's key prop? HOT 2
- Roact Documentation for Installation is out of date
- Allow passing list of props to element props
- A way to use Roact with Roblox-TS(Typescript) HOT 3
- Add "ensureBinding" Function To Binding API
- Functional components HOT 1
- Error `Listeners can only be disconnected once` in context consumers
- Roblox
- Freeze props, freeze state after init
- Too much lag and errors on PC and iPad HOT 1
- why does createSignal not use the task library? HOT 1
- Wally publish could be automated with GitHub Actions HOT 2
- Allow Roact Bindings to skip property updates HOT 1
- PureComponent doesn't actually compare state
- SurfaceGUI not corretly detecting mouse events with Roact
- Build element from existing gui object suggestion HOT 1
- attempt to call missing method '__mount' of table
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roact.