how to you pass data to react components from backend? #12
Unanswered
edmundspriede
asked this question in
Q&A
Replies: 2 comments 3 replies
-
|
Hi @edmundspriede it's easy to pass data from backend to frontend. wordpress-plugin-boilerplate/includes/Assets/Frontend.php Lines 104 to 110 in 8d982b6 And access data on react like this Remember the object |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
HNY! thank you , i will dive into this as this is what i need for my project |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello , very interested in boilerplace, but never used react... only php.
so as i understand react component will get data from API ( from browser ) , but i need to pass data relevant to requested page ( like product id and data). so how do i do this? so if i have product id, i can then read relevant data from API , but i need atleast product or page id to do that.
thank you
Beta Was this translation helpful? Give feedback.
All reactions