• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Air and React JS

New Here ,
Aug 06, 2016 Aug 06, 2016

Copy link to clipboard

Copied

Hi guys!

Does Air let use the React JS library?Has anyone achieved to make the React.js library work?

I've tried to create a "Hello world" app placing both needed files:

    <script src="js/react.js"></script>

    <script src="js/react-dom.js"></script>

I have tried using the JSX approach first, however it seems to not be working in Air. Hence I  I tried the pure JS aproach. The app window opens but it is totally empty, the adl outputs the following errors:

G:\AIR-PROJECTS\HWReactJS>adl application.xml

TypeError: Result of expression 'RegExp.prototype.test.bind' [undefined] is not a function.

at app:/js/react.js : 3294

s at app:/js/react.js : 4

at app:/js/react.js : 4

at app:/js/react.js : 10380

s at app:/js/react.js : 4

at app:/js/react.js : 4

at app:/js/react.js : 6776

s at app:/js/react.js : 4

at app:/js/react.js : 4

at app:/js/react.js : 14337

s at app:/js/react.js : 4

e at app:/js/react.js : 4

at app:/js/react.js : 20639

at app:/js/react.js : 4

TypeError: Result of expression 'React' [undefined] is not an object.

at app:/js/react-dom.js : 41

at app:/js/react-dom.js : 37

SyntaxError: Parse error

app:/main.html : 11

Any ideas?

Thanks!

TOPICS
Development

Views

433

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines