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 callreact.render()
on it?
as @llernestal , @mikedriver suggested in comments, used php build json representation of ui , had react build components needed render ui.
Comments
Post a Comment