-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow variables inside the function body #39
Comments
Not sure what you mean. Can you provide some examples? |
|
Code like this works export default () => {
const label = 'ok';
return (
<button>{label}</button>
);
} |
yes but how to get that |
Hm, not sure what exactly your use-case is. If you are using "live-code only" setup, you can pass it through If you are using knobs where the code auto-generated, there is no way to tell react-view "add this variable right here...". |
currently variables inside the function body are only made available when they are passed to the component itself and are mentioned
stateful:true
, no support for other type of variables is foundThe text was updated successfully, but these errors were encountered: