strip-comments test

node v10.24.1
version: 1.0.0
endpointsharetweet
const strip = require('strip-comments'); const reactComponentWithComments = ` const component = () => ( // This breaks the UI {/* OK, no children passed in, so it’s not a custom component and we can */} <Helmet> <title>{title}</title> </Helmet> ) ` strip(reactComponentWithComments)
Loading…

no comments

    sign in to comment