AMP Animation requires a JSON which requires us to specially format it for React.
If you follow this AMP Scroll To Top Example, and paste this section into the render method
// !! This won't work if you paste it into React
<amp-animation id="showAnim" layout="nodisplay">
<script type="application/json">
{
"duration": "200ms",