const changeFunction = InfiniteScroll.prototype.render
InfiniteScroll.prototype.render = new Function(
'return ' +
changeFunction
.toString()
.replace('infinite-scroll-component__outerdiv', 'afw')
)()
I tried to do this, but it gives an error "error - ReferenceError: React__default is not defined"
Link to codesandbox