# hypernova-amp **Repository Path**: mirrors_airbnb/hypernova-amp ## Basic Information - **Project Name**: hypernova-amp - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README | :exclamation: Deprecation Notice | |:-| |We want to express our sincere gratitude for your support and contributions to the Hypernova open source project. As we are no longer using this technology internally, we have come to the decision to archive the Hypernova repositories. While we won't be providing further updates or support, the existing code and resources will remain accessible for your reference. We encourage anyone interested to fork the repository and continue the project's legacy independently. Thank you for being a part of this journey and for your patience and understanding.| --- # hypernova-amp [Aphrodite](https://github.com/Khan/aphrodite) bindings for [Hypernova](https://github.com/airbnb/hypernova) for rendering AMP pages. ## Install ```sh npm install hypernova-amp ``` ## Usage Here's how use use it in your module: ```js import { renderReactAmpWithAphrodite } from 'hypernova-amp'; import MyComponent from './src/MyComponent.jsx'; export default renderReactAmpWithAphrodite( 'MyComponent.hypernova.js', // this file's name (or really any unique name) MyComponent, {/* Options */}, ); ``` ## Options ### `prependCSS` (string) Inserts css before the generated CSS. ### `appendCSS` (string) Inserts css after the generated CSS. ### `enableAmpBind` (bool) Set to `true` to enable [amp-bind](https://www.ampproject.org/docs/reference/components/amp-bind). Default: `false`. This will transform any attribute named `amp-bind-x` into an attribute named `[x]`. This is necessary because react does not support `[x]` prop even in conjunction with `is` (see next section). ### `enableRemoveIs` (bool) Utilizes regex to remove `is` attribute. React has an undocumented `is` prop that when added to an element, prevents React from transforming/filtering props that you add to the element. Any prop that you add will be added as an attribute with the same name. For example, adding a `class` prop to a `