-
Notifications
You must be signed in to change notification settings - Fork 206
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
Putting components with callbacks in template. #237
Comments
Try using quotes for attribute values
Il mar 10 apr 2018, 14:44 Raj Kadam <[email protected]> ha scritto:
… Hi,
I am new to react-templates. How would I put something like this in a
template:
<Select name="form-field-name" value={value} onChange={this.handleChange}
options={[ { value: 'one', label: 'One' }, { value: 'two', label: 'Two' },
]} />
When I put this in, it throws an error. Any help appreciated!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#237>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACemK7T5dnzLMiuDbXWAAWxtwp7k4-elks5tnKlLgaJpZM4TOLu8>
.
|
I tried that. Here is the component I am trying to use: |
the following
did produce a perfectly valid output in React templates playground. What error message are you getting? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am new to react-templates. How would I put something like this in a template:
<Select name="form-field-name" value={value} onChange={this.handleChange} options={[ { value: 'one', label: 'One' }, { value: 'two', label: 'Two' }, ]} />
When I put this in, it throws an error. Any help appreciated!
The text was updated successfully, but these errors were encountered: