mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
8 lines
288 B
JavaScript
8 lines
288 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { HydraAdmin } from '@api-platform/admin';
|
|
|
|
const entrypoint = document.getElementById('api-entrypoint').innerText;
|
|
|
|
ReactDOM.render(<HydraAdmin entrypoint={entrypoint}/>, document.getElementById('api-platform-admin'));
|