Skip to main content
vicmarcal
Participant
August 6, 2016
Question

Air and React JS

  • August 6, 2016
  • 0 replies
  • 451 views

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!

This topic has been closed for replies.