Closed Noitidart closed 6 years ago
Yes it should be possible.
...
let ScrollElement = Scroll.ScrollElement;
var Element = React.createClass({
render: function () {
return (
<div {...this.props}>
{this.props.children}
</div>
);
}
});
module.exports = ScrollElement(Element);
Thank you I will try this out! Will close for now
Similar to how we can create a custom
Link
, is it possible to create an element that is a custom spy element? I just want a certain element to have a certain class when acontainerId
is within view.CC: @1yzo