UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

10 lines (9 loc) 177 B
const safelyParseJson = (parseString) => { try { return JSON.parse(parseString); } catch (e) { return null; } }; export default safelyParseJson;