react-lineto
react-lineto copied to clipboard
Forward props to underlying div element
I'm wanting to test that a line is drawn under a given scenario with React Testing Library and it seems "data-testid" is the only attribute I could use to select it. However, passing one to the <LineTo /> component doesn't seem to make it to the DOM.
It would be nice if we could forward and spread any additional props passed in to the underlying <div /> element that is the line.