Comments (4)
Are you using babel or plain ES6?
One line way seems to work for me:
import {Accordion, AccordionItem} from 'react-sanfona';
from react-sanfona.
I'm trying to run this in Meteor 1.3, which must be using es6 + babel.
import { Accordion, AccordionItem } from 'react-sanfona';
console.log('loaded', Accordion, AccordionItem); // loaded undefined undefined
import ReactSanfona from 'react-sanfona';
const { Accordion, AccordionItem } = ReactSanfona;
console.log('loaded', Accordion, AccordionItem); // loaded function function
from react-sanfona.
I think this is because src/index.js
is using export.default - adding export { Accordion, AccordionItem }
should work, I will confirm it doesn't break stuff
thanks for the examples
from react-sanfona.
@psimyn Hey Simon, could you drop me an e-mail at [email protected]? 😄
from react-sanfona.
Related Issues (20)
- max-height not getting removed after animation HOT 2
- onHover property HOT 2
- overflow is always 'hidden' when accordion item has images HOT 2
- Animation is not working while closing Itembody [occurs since version 1.2.1] HOT 1
- Does it support Typescript HOT 1
- Is it possible to describe the accordion component and the accordion item component in different classes? HOT 1
- Is there a way to hit the style well for accordion item components only?
- How to implement jump to prev/next item HOT 1
- Custom caret icon
- Expanded prop not overriding state on re-render? HOT 1
- Pass key for AccordionItem HOT 1
- Solution to hide a new life cycle warning HOT 1
- AccordionItem shakes when entering text.
- Any plans to update the dependencies ? HOT 1
- How create an Accordion with one item that starts collapsed? HOT 3
- React 17 is going to deprecate UNSAFE lifecycle methods
- Accordion with image gets revealed when you double click on the Accordion item
- Close transition only works for the first time
- Can't use <input> within AccordionItem
- nested of Accordion then facing ui issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-sanfona.