-
Notifications
You must be signed in to change notification settings - Fork 9
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 deal with classes #7
Comments
let ReactAutolink = require('react-autolink');
ReactAutolink.autolink(text); would work. I'll add these to README as well. Thanks! |
This worked for me, but I am now getting the error
My code:
When I remove the autolink the error msg goes away. It's inside of a component which has a correctly assigned key, the error only shows when I add the autolink. Any thoughts? |
@diffractometer This is occurring because
|
@jxodwyer but then if you have 2 (or more) links inside your "text" variable you will receive React "flattenChildren" warning and only the 1st link will be displayed! |
Setting the |
@fujimura seems to have tackled this in fujimura@aba7d7c maybe one of you could open a pull request? |
👍 I'll make it. |
@jxodwyer thank you btw, that worked. Sorry I didn't reply back in March. |
I'm using babel to compile my JSX and ES6 and I'm creating component with ES6 classes rather than React.createClass. Unfortunately classes don't support mixins, is there a way around to use your lib?
The text was updated successfully, but these errors were encountered: