How to use the @webiny/app-admin/hooks/useCrud.useCrud function in @webiny/app-admin

To help you get started, we’ve selected a few @webiny/app-admin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / app-page-builder / src / admin / views / Menus / MenusForm.js View on Github external
function MenusForm() {
    const { form: crudForm } = useCrud();

    return (
        <form>
            {({ data, form, Bind }) =&gt; (
                
                    {crudForm.loading &amp;&amp; }
                    
                        
                            
                                
                                    <input label="{t`Name`}">
                                
                            
                            
                                
                                    <input label="{t`Slug`}" disabled="{data.id}"></form>

@webiny/app-admin

A collection of plugins that together form a complete admin interface, customizable and extensible with Webiny apps and plugins.

MIT
Latest version published 1 day ago

Package Health Score

78 / 100
Full package analysis

Similar packages