Re: Django context to React component

2020-08-03 Thread Yemin Sajid
You're welcome. On Mon, Aug 3, 2020 at 5:54 PM jose ivan perez diaz < joseivanperezdi...@gmail.com> wrote: > Thanks for your advice > > Sent from my iPhone > > On 3/08/2020, at 4:07 AM, Yemin Sajid wrote: > >  > On idea could be serializing the context and setting as in a global `var` > in java

Re: Django context to React component

2020-08-03 Thread jose ivan perez diaz
Thanks for your advice Sent from my iPhone > On 3/08/2020, at 4:07 AM, Yemin Sajid wrote: > >  > On idea could be serializing the context and setting as in a global `var` in > javascript code in the templates. Then you should be able to access those in > from React code. > But tbh, I would

Re: Django context to React component

2020-08-03 Thread Yemin Sajid
On idea could be serializing the context and setting as in a global `var` in javascript code in the templates. Then you should be able to access those in from React code. But tbh, I would not recommend that. This type of integration may create unnecessary complexities. Better to work with the A

Django context to React component

2020-08-02 Thread jose ivan perez diaz
Hi Everyone, Where can I found a guide to combine django and React? I mean, what I want is passing the context to a React component, any clue?, I know that is possible combine them throw django rest framework through an API, but is it possible work with the context from django in React, thaks fo