We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
is it possible use this library with ES6 Imports?
I have tried something like this:
import { reactStringReplace} from "react-string-replace"; But it doesn't work because I get error reactStringReplace is not a function
import { reactStringReplace} from "react-string-replace";
reactStringReplace is not a function
How can I fix this? :) Thank you.
The text was updated successfully, but these errors were encountered:
Yup, that should work fine, but the function is the default export not a named export. So try:
import reactStringReplace from "react-string-replace";
Sorry, something went wrong.
Check out this example for a working example: https://github.com/iansinnott/react-string-replace/blob/master/example/index.js#L3
Note that this module is NOT written in ES6, but if you are using bundler like Webpack it should still be able to handle it.
No branches or pull requests
Hello,
is it possible use this library with ES6 Imports?
I have tried something like this:
import { reactStringReplace} from "react-string-replace";
But it doesn't work because I get error
reactStringReplace is not a function
How can I fix this? :)
Thank you.
The text was updated successfully, but these errors were encountered: