aac50e4501
* Add error message for AMP bind syntax * Fix custom AMP scripts getting dropped * Add data.js to package.json to include it in releases
14 lines
421 B
Markdown
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)
|