I'm a newbie to integrating react + ruby and was wondering if there is a way to access my sessions contents that I stored?
For example, in my app.rb
, I'm storing sessions[:return_url]=blah.com
. I'm currently using reactjs for my UI and want to access this return_url upon a button click. Is there a way to access it?
I've tried doing <%= return_url = sesssions[:return_url] %>
but this doesn't work because I'm in a .jsx file and it can't interpret this haha (it was worth a shot)
Any tips would be appreciated!