Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import it in create-react-app? #15

Open
shin-monkey opened this issue Dec 2, 2016 · 2 comments
Open

How to import it in create-react-app? #15

shin-monkey opened this issue Dec 2, 2016 · 2 comments

Comments

@shin-monkey
Copy link

Is there a straight way to import the component using 'import from'?

@shin-monkey shin-monkey changed the title How to import it via in create-react-app? How to import it in create-react-app? Dec 2, 2016
@shin-monkey
Copy link
Author

shin-monkey commented Dec 5, 2016

Ok, so I found a way to do it (not sure if itś the best one):

import { Menu, MainButton, ChildButton } from 'react-mfb'
import 'react-mfb/mfb.css'
import '../styles/ionicons.min.css'; //(downloaded from the ionicons.com website and then put it manually into my project)

And then inside the render() and before return:
var panel = document.getElementById('panel'),
showcode = document.getElementById('showcode'),
selectFx = document.getElementById('selections-fx'),
selectPos = document.getElementById('selections-pos'),
selectMethod = document.getElementById('selections-method');
var effect = 'zoomin',
pos = 'br',
method = 'hover';

@donszek
Copy link

donszek commented Dec 10, 2016

nice @shin-monkey

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

No branches or pull requests

2 participants