rsnext/errors/amp-bind-jsx-alt.md
JJ Kasper aac50e4501
Add error message for AMP bind syntax (#6865)
* Add error message for AMP bind syntax

* Fix custom AMP scripts getting dropped

* Add data.js to package.json to include it
in releases
2019-04-02 17:32:07 -05:00

14 lines
421 B
Markdown

# 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)