![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-crowdriff-gallery
Advanced tools
This lightweight component allows CrowdRiff customers to embed their galleries on websites built in React
Import and use
import { CrowdRiffGallery } from 'react-crowdriff-gallery'
class App extends Component {
render() {
<div>
<CrowdRiffGallery hash="hash1234" />
</div>
}
}
Prop Name | isRequired | type | Description |
---|---|---|---|
hash | true | string | 8 or 16 character hash found in the gallery's embed code |
The gallery hash is located within the id field of the embed code, prepended by either cr-init__
or cr__init-
depending on the version.
<script id="cr-init__1234hash" src="https://starling.crowdriff.com/js/crowdriff.js" async></script>
OR
<script id="cr__init-1234hash" src="https://embed.crowdriff.com/js/init?hash=1234hash" async></script>
The component handles the embedding of the script onto the page, as well as hooking into the crowdriff__gallery window object that registers and renders gallery objects. As a result, the setup and teardown is in the componentDidMount
and componentWillUnmount
lifecycle methods. If you want to dynamically change gallery hashes, set a key
prop equal to the hash on the component to trigger a new instance of the component.
Dynamic gallery example
class DynamicGallery extends Component {
render() {
<div>
<CrowdRiffGallery hash={this.props.hash} key={this.props.hash} />
</div>
}
}
[0.0.1] - 2018-09-25
FAQs
React component to put a CrowdRiff embed code in a React app
The npm package react-crowdriff-gallery receives a total of 241 weekly downloads. As such, react-crowdriff-gallery popularity was classified as not popular.
We found that react-crowdriff-gallery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.