dillon1000/react
Commit
Browse files Sync out latest JSX transforms
The biggest change: instead of calling functions directly, we now use React.createElement to wrap. The other big change: this removes the need for the @jsx pragma. Instead we'll parse everything, assume React is in scope, and only look for the actual XJS parts in the AST (as opposed to only runing the transform when @jsx was specified in the docblock). Note: this is actually a series of commits internally and should have been syned out in pieces over the past several weeks.
Changed paths4 files
First-parent comparisonvendor/fbtransform/transforms/__tests__/react-displayName-test.js ModifiedM vendor/fbtransform/transforms/__tests__/react-test.js ModifiedM vendor/fbtransform/transforms/react.js ModifiedM vendor/fbtransform/transforms/reactDisplayName.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…