News for hackers. Stuff that matters.
Re:Modals in React by ThePhysicist on Wednesday July 29, 2015 @04:37AM (#9967116)
Here is our React/Bootstrap modal component:

https://github.com/gitboard/gitboard/blob/master/src/js/comp...

Initially we used a 3rd party component but we finally wrote this much simpler version. It uses only React state variables to show/hide the modal and does not require any jQuery or Bootstrap JS to work (both of which can cause problems when mixing them with React). Feel free to reuse this code, the whole repository (Gitboard) is currently licensed under AGPL but we would be happy to provide e.g. an MIT license for the components or even make it public domain (as this is hardly more than a code snippet).

Re:Modals in React by zackify on Wednesday July 29, 2015 @04:47AM (#9967168)
Hey, creator of ReactJSNews here. Feel free to add it to the post and send a pull request! https://github.com/Legitcode/ReactJSNews/blob/master/posts/2... Anyone is welcome to write a post on the site!
Re:Modals in React by ThePhysicist on Wednesday July 29, 2015 @05:27AM (#9967336)
Cool, will do that!
Re:Modals in React by fredoliveira on Wednesday July 29, 2015 @05:36AM (#9967383)
If you ever extract your component into its own repository, we'd love to have you submit it to http://react.parts!
Re:Modals in React by nicksellen on Wednesday July 29, 2015 @11:45AM (#9969372)
it declares jquery as a requirement but doesn't actually use it - https://github.com/gitboard/gitboard/blob/master/src/js/comp...
Re:Modals in React by ThePhysicist on Thursday July 30, 2015 @12:42PM (#9976179)
Gitboard as a whole uses jQuery, but not the component. I will have to clean up the code a bit it seems, will do that in the coming days and publish the component.