Closed sceutre closed 8 years ago
I encountered this when trying to use drop down menus from http://blueprintjs.com. Here is a small example:
class Wrapper extends React.Component { render() { return <div><Stateless /></div>; } } function setRef(c) { console.log("ref from a stateless component", c); } const Stateless = (props) => <div ref={setRef}>Hello, world</div>;
When rendered, the console log displays in full react but not react-lite.
Looking at the code, I can fix it by doing the following, but I'm not sure if this is the best solution or has any other impacts:
Thx feedback, I think you are totally right.
And already fixed it at this commit, version 0.15.28 of react-lite support this pattern now.
react-lite
Thanks! Works for me now.
I encountered this when trying to use drop down menus from http://blueprintjs.com. Here is a small example:
When rendered, the console log displays in full react but not react-lite.
Looking at the code, I can fix it by doing the following, but I'm not sure if this is the best solution or has any other impacts: