javascript - Generate React components in PHP and then render in client -


i'm trying use react simplify way build ui app i'm writing. i've got proof of concept working in single html page, need split out js individual modules make easier maintain.

i know how structure app if every piece of puzzle known @ build time. this: https://github.com/jordwalke/reactapp. however, ui built dynamically in php, nesting various components want pass app.

my initial thought of dumping generated code script tag , having javascript find has led me horrible dependencies hell.

my primary question is:

how pass <panel><group><field /></group></panel> app can call react.render() on it?

as @llernestal , @mikedriver suggested in comments, used php build json representation of ui , had react build components needed render ui.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -