Add a recipe for API Platform Admin

This commit is contained in:
Kévin Dunglas
2018-12-08 21:47:20 +01:00
parent 1714b9f050
commit 40e6b96a0f
6 changed files with 50 additions and 0 deletions
@@ -0,0 +1,7 @@
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'));