dfrankland/react-amphtml

React 16.4.2 and AmpHelpers.Action

Closed this issue · 3 comments

ReactDOM 16.4.2 (released yesterday) made a change that sanitizes unknown attribute names and drops those attributes outright. So the workaround that AmpHelpers.Action uses does not work anymore.

Not sure how you'd work around this, just putting it out there. I reverted to ReactDOM 16.4.1 for now.

Having this issue too, for now I use:

   <h1 data-amp-bind-text="heading.text">{defaultHeading.text}</h1>

Was facing the same problem both in Action and Bind components. @antonybudianto's solution worked for me.

Should work starting with version 3.1.0