didierfranc / didierfranc/vscode-react-intellisense

babelify React DOM

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I was having Node 4.0 and i have the following depepdencies in my package.json

"dependencies": {
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babelify": "^7.2.0",
"browserify": "^11.0.1",
"express": "^4.13.4",
"react": "^15.0.1",
"react-dom": "^15.0.1",
"watchify": "^3.4.0"
}

when i try to do bablify ReactDom code is not able to transform

src: https://github.com/didierfranc/vscode-react-intellisense/tree/master/public/index.js

ReactDOM.render(, document.getElementById('content'));

Expect transform in bundle.js as

_reactDom.render(_react2.default.createElement(HelloMessage, { name: 'Mark' }), document.getElementById('content'));

but it is not transform instead i have the same line in bundle.js

ReactDOM.render(, document.getElementById('content'));

https://github.com/babel/babelify

how can i fix this ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the linked public/index.js and the package.json dependencies, then trace the Babelify/Browserify command that produces bundle.js. Compare the JSX in ReactDOM.render with the generated bundle and verify that the completed build transforms the JSX as described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, react
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.