Fork me on GitHub

Hi folks, I’m looking to make an app with video conferencing and AWS chime looks pretty nice. They have a react component library that might make it super easy, but it uses a lot of providers, is there a way I can interop with those nicely in reagent? (Be able to do ‘useContext’ and stuff?)


And I’m guessing I’d have to use their hooks to get at the underlying state in the providers create


You can use hooks with Reagent but not as easily as you can with React. It's easy.


It should be easy with the latest alpha version.


Is there any significant change ? I have been referring to this doc so far:


@UH0MTLCHF I have put together an example of using Ratoms and React Hooks. As @U2FRKM4TW pointed, its easy with the latest alpha version : Hope it helps.


But it doesn't really use the new function components - with them, I don't think you would need a wrapper component. I don't know for sure though.


I'm working on something similar and just found the doc on functional compiler: The example I posted is just one way to go about it.

Grant Isom17:09:58

Anyone have any good resources for deploying a reagent app with docker?


It shouldn't be any different from any other deployment scenario.


Reagent app is just a set of JS and HTML files post build process. Any guide on deploying React with Docker will work: • (disclaimer: the first post is written by me)


Even the "React" part can be removed - you just write your Dockerfile according to the build steps and the artifacts that they produce, that's it. It's not even frontend-specific.

👍 3
Grant Isom17:09:07

Sweet, thanks for the links and advice!


@U017M2273H7 If its just reagent and no server you can also use static site stuff


like netlify