Giter VIP home page Giter VIP logo

Comments (5)

ericdfields avatar ericdfields commented on July 20, 2024

Yeah, just running into this myself. Considering all the lib/components do have JSX in them, why not rename them from .js to .jsx?

from react-tabs.

ericdfields avatar ericdfields commented on July 20, 2024

@jamuhl actually is that the problem? I forked and renamed the components and get this error for each component:

ERROR in ../~/react-tabs/lib/components/TabPanel.jsx
Module parse failed: /Users/EricFields/Development/vanda/node_modules/react-tabs/lib/components/TabPanel.jsx Line 24: Unexpected token <
You may need an appropriate loader to handle this file type.
| 
|       return (
|           <div role="tabpanel"
|               id={this.props.id}
|               aria-labeledby={this.props.tabId}
 @ ../~/react-tabs/lib/main.js 5:11-43

from react-tabs.

jamuhl avatar jamuhl commented on July 20, 2024

@ericdfields sorry...can't remember...we had a bigger change so we had no need to use this....sorry.

from react-tabs.

anyong avatar anyong commented on July 20, 2024

Can't use it in browserify either. Here's the errors:

tabpanel.js: Unexpected token (19:3)
tab.js: Unexpected token (42:3)
tablist.js: Unexpected token (7:3)
tabs.js: Unexpected token (201:3)

Same issue renaming them to .jsx.

Seems like it might be pretty straightforward to pre-transpile and load react-tabs into a single .js file for distribution?

from react-tabs.

mzabriskie avatar mzabriskie commented on July 20, 2024

I have completely removed JSX (8d47d98). This should no longer be an issue once it's released.

from react-tabs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.