rw.setProps
Syntax
rw.setProps({
key: value,
anotherKey: anotherValue
});Basic Examples
Simple Values
const transformHook = (rw) => {
rw.setProps({
message: 'Hello, World!',
count: 42,
isVisible: true
});
};
exports.transformHook = transformHook;Arrays
Objects
Common Patterns
Passing Transformed Props
Conditional Values
Spreading Collections
Building CSS Classes
Multiple Calls
Passing Context Objects
Last updated
Was this helpful?

