Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

ReactJS / Website integration
Started by prographodeveloper May 07 2019 07:53 AM

- - - - -
1 reply to this topic
react html5 javascript
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

prographodeveloper

[GLOBAL: userInfoPane.html]
prographodeveloper
  • Contributor

  • 298 posts
  • Corona SDK

I compiled my Corona program to HTML5 -- works great.

 

I now want to embed this into a larger web page, how do I go about doing that?

 

The rest of the website is done in ReactJS. I have looked at the html output (which is an index.html a .bin file and a .data file) is there some way to turn that into a react component?

 

I guess I could use an iFrame and just treat the whole thing as separate?

I just need a bit of guidance for the best approach.

 

thx



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,781 posts
  • Enterprise

I would consider going the iFrame route. You should be able to make a react component, but I assume the .bin and .data files change each time you build and I don't know if that would require you to make new components all the time.

 

Rob


  • prographodeveloper likes this


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: react, html5, javascript