How to use the react-sortable-hoc/dist/es6.SortableContainer function in react-sortable-hoc

To help you get started, we’ve selected a few react-sortable-hoc 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 Kong / insomnia / packages / insomnia-app / app / ui / components / modals / workspace-environments-edit-modal.js View on Github external
<i>
            
          )}

           changeEnvironmentName(environment, name)}
            value={environment.name}
          /&gt;
        
      
    );
  },
);

const SidebarList = SortableContainer(
  ({ environments, activeEnvironment, showEnvironment, changeEnvironmentName }) =&gt; (
    <ul>
      {environments.map((e, i) =&gt; (
        
      ))}
    </ul>
  ),
);
</i>