Closed calummackervoy closed 1 year ago
Hi! Thanks so much for making this library!!
I've managed to use this library with React, documenting below for future users:
App.tsx
import {Helmet} from "react-helmet";
function MyApp({ Component, pageProps }: AppProps) { return ( <>
<Component {...pageProps} /> </>
); }
* create a component for `GenericThingForm`: ```typescript import React from 'react'; interface IGenericThingForm { id: string, shape: string }; const GenericThingForm = ({id, shape}: IGenericThingForm) => { let form = React.createElement("shacl-form", { "data-shapes": shape, "id": id, "className": "genric-thing-form" }); return ( <div> {form} </div> ); }; export default GenericThingForm;
cool, thanks!
@calummackervoy Using it :) Thanks for sharing it !
Hi! Thanks so much for making this library!!
I've managed to use this library with React, documenting below for future users:
App.tsx
function MyApp({ Component, pageProps }: AppProps) { return ( <>
); }