🌍 Public
Viewing a saved revision (read-only)
dedfdf864fa34fc88fc06c64c5319d30
D3 Soccer Starter
This example demonstrates a minimal integration of the d3-soccer library with React, rendering a static page that logs the imported `pitch` function to the console. The app uses `ReactDOM.render` to display a simple “Hello” message, while the d3-soccer library is loaded via a script tag and imported in the JavaScript module. The code imports `select` from d3 and the `pitch` API from d3-soccer, though no pitch visualization is actually drawn in the current implementation, serving as a starter template for future soccer field plots.
AI-generated descriptionISC Licensed