rsnext/errors/amp-bind-jsx-alt.md

15 lines
421 B
Markdown
Raw Normal View History

# AMP Bind JSX Error
#### Why This Error Occurred
Somewhere you used `[prop]='something'` syntax which is not allowed in JSX.
#### Possible Ways to Fix It
Instead you can use `data-amp-bind-prop='something'` which is a valid AMP alternative
### Useful Links
- [AMP HTML Specification](https://www.ampproject.org/docs/fundamentals/spec)
- [Possible future syntax](https://github.com/ampproject/amphtml/issues/21600)