MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / fromPascal

Function fromPascal

src/components/common/ComponentList.jsx:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73const slug = str => (str || '').replace(/\s+/g, '-').toLowerCase();
74const fromPascal = str =>
75 (str || '')
76 .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
77 .replace(/_/g, ' ')
78 .trim();
79
80const ComponentList = ({ list, hasDeleteButton = false, hasFavoriteButton = false, sorting = 'none', title }) => {
81 const scrollRef = useRef(null);

Callers 2

mapToItemFunction · 0.85
cellRendererFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected