Display Ludum Dare Game Jam results in React.
Note: This project is community made and not endorsed by the offical Ludum Dare creator(s).
yarn add @ludum-dare-badges/react
npm install @ludum-dare-badges/react
import React from 'react' import Widget from '@ludum-dare-badges/react' const App = () => ( <Widget game="44/alien-e-x-p-a-n-s-i-o-n" /> )
Simply add the game widget to the React application using JSX.
The React component will simply call @ludum-dare-badges/api to obtain the results badge.
The namespace of the game on the ldjam site Required
game requires both the Ludum Dare number and the game title (eg.
44/alien-e-x-p-a-n-s-i-o-n for Ludum Dare 44)
The image format type to display the badge as. Default:
Can be either
svg is recommended for better font rendering.
The host of the API. Default:
Likely only set in the case that the API is self-hosted.