erikschlegel / react-twitter-typeahead Goto Github PK
View Code? Open in Web Editor NEWA ReactJS component that integrates Twitter's typeahead autosuggest control
Home Page: http://reactypeahead.azurewebsites.net/example/
License: MIT License
A ReactJS component that integrates Twitter's typeahead autosuggest control
Home Page: http://reactypeahead.azurewebsites.net/example/
License: MIT License
might be from these lines:
if(!this.props.bloodhound)
this.props.bloodhound = {};
if(!this.props.typeahead)
this.props.typeahead = {};
if(!this.props.datasource)
this.props.datasource = {};
I think props are supposed to be immutable?
Dependencies such as jQuery and browserify are tracking very old versions.
Would love to use it if it could.
This package appears to be meant as a base for a project. npm packages are supposed to be modules for other projects. Installing this through npm is useless, as the package doesn't export anything at all. Please make it export ReactTypeahead
The sample site provided at the top of the README.md file is not working.
The demo page on azuresites doesn't work, because the example.js can't be found.
Requiring ReactTypeahead
is not enough to make it work in a commonjs environment like browserify. The js bundle fails to load with undefined symbol Bloodhound
and $(...).typeahead etc. These dependencies to should be explicitly required in ReactTypeahead
.
react-tools
and reactify
have been deprecated in favor of babel. When I try to import the module ReactTypeAhead
like so import ReactTypeahead from 'react-twitter-typeahead';
. I get an error Error: Cannot find module 'reactify'
.
Hi
I am trying this library in my project and occurs a error when compiling with browserify. I installed it with npm and in my .js file I used Var ReactTypeahead = require('react-twitter-typeahead');
compiled it with: browserify -t reactify archivo.js -o archivo_preprocesado.js
Error: Parsing file /home/patricio/programacion/trabajos/capex/moiras/browser/javascript/node_modules/react-twitter-typeahead/lib/js/react-typeahead.js: Unexpected token (78:12)
at Deps.parseDeps (/usr/local/lib/node_modules/browserify/node_modules/module-deps/index.js:436:28)
at fromSource (/usr/local/lib/node_modules/browserify/node_modules/module-deps/index.js:375:44)
at /usr/local/lib/node_modules/browserify/node_modules/module-deps/index.js:369:17
at ConcatStream.<anonymous> (/usr/local/lib/node_modules/browserify/node_modules/concat-stream/index.js:36:43)
at ConcatStream.emit (events.js:117:20)
at finishMaybe (/usr/local/lib/node_modules/browserify/node_modules/readable-stream/lib/_stream_writable.js:460:14)
at endWritable (/usr/local/lib/node_modules/browserify/node_modules/readable-stream/lib/_stream_writable.js:469:3)
at ConcatStream.Writable.end (/usr/local/lib/node_modules/browserify/node_modules/readable-stream/lib/_stream_writable.js:436:5)
at DuplexWrapper.onend (/usr/local/lib/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:537:10)
at DuplexWrapper.g (events.js:180:16)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.