围绕 Tether 的 React 封装
Cross-browser Testing Platform and Open Source ( { this.setState({ isOpen: !isOpen }); }} > Toggle Tethered Content
)}
/* renderElement: If present, this item will be tethered to the the component returned by renderTarget */
renderElement={(ref) =>
isOpen && (
)
}
/>
);
}
}
…javascript (this.tether = tether)} renderTarget={(ref) => } renderElement={(ref) => ( this.tether && this.tether.position()} /> )} />
## Run Example
clone repo
`git clone [email protected]:danreeves/react-tether.git`
move into folder
`cd ~/react-tether`
install dependencies
`npm install`
run dev mode
`npm run demo`
open your browser and visit: `http://localhost:1234/`暂无开放 Issues,或尚未同步最近议题。