Skip to content

Commit

Permalink
Rename the directory to indicate that we transform inline
Browse files Browse the repository at this point in the history
This required minor modifications to the source code since the previous
approach using the JSXTransformer is now deprecated
e-mission/e-mission-docs#643 (comment)

This is also not the recommended "production" version, which involves manually
precompiling the JSX file.
https://reactjs.org/docs/add-react-to-a-website.html#add-jsx-to-a-project

Will try that next
  • Loading branch information
shankari committed Jul 11, 2021
1 parent 39badb4 commit b878a6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
<body ng-controller="mainCtrl">
<div class="content">
<div class="header">
<h1>
<div>Hello {{person.fname}} {{person.lname}}</div>
<small>
<code>&lt;Directly from angular/&gt;</code>
</small>
</h1>
<h1>
<div><hello fname="person.fname" lname="person.lname"/></div>
<small>
Expand All @@ -52,9 +58,9 @@ <h1>
<script src="../../bower_components/angular/angular.js"></script>
<script src="../../bower_components/react/react.js"></script>
<script src="../../bower_components/react/react-dom.js"></script>
<script src="../../bower_components/react/JSXTransformer.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script src="../../ngReact.js"></script>
<script src="Hello.jsx" type="text/jsx"></script>
<script src="Hello.jsx" type="text/babel"></script>
<script src="app.js"></script>
</body>
</html>
</html>

0 comments on commit b878a6e

Please sign in to comment.