Skip to content

Conversation

@vegetableman
Copy link

Ran in to the jsx issue when doing a require using webpack:-

ERROR in ./~/react-tabs-component/Tabs.js
Module parse failed: /Users/viven/Projects/dummy/node_modules/react-tabs-component/Tabs.js Line 62: Unexpected token <
You may need an appropriate loader to handle this file type.
|                       var isActive= tabNum===this.state.activeTabNum;
|                       return (
|                               <span
|                                       key={'tab-'+tabNum}
|                                       className={isActive? activeTabClassName : tabClassName }

The build task splits out a regular js file for easier sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant