Comments (24)
drag & drop would be nice, this might be a good starting point
from reagent-cookbook.
Added a simple jQuery ui draggable recipe, will soon add droppable.
from reagent-cookbook.
I think tricky ones. Like popup with click outside functionality. Transactions. Cross component syncronization using channels and shared state. Code organization tips.
from reagent-cookbook.
@Gonzih I found that you generally don't need core.async with Reagent at all. If you have two components that need to communicate then you can simply use an atom for that. For example, I could have a button that triggers an Ajax call and have the callback set the atom state. The other component can observe the atom and will be repainted whenever the atom state changes.
from reagent-cookbook.
@yogthos That's my observation too. Om -> Reagent = less core.async or handlers.
from reagent-cookbook.
I had great experience with core.async and reagent to synchronyze local state for component based on pop state events from browser's history.
from reagent-cookbook.
A simple "focus" recipe would be good.
from reagent-cookbook.
I hadn't realized the call for recipes was here. Here are the couple I mentioned on reddit:
- Input field validation
- Drop-down calendar
And another user replied directly to my post saying:
In the integration with js dept, I'm wondering how best to do user avatar cropping / resize before upload.
from reagent-cookbook.
@ricardojmendez thanks for porting those recommendations to this thread. Just added a recipe for a dropdown calendar. Will work on adding some more from everyone's suggestions soon!
from reagent-cookbook.
In one of my personal projects, I'm getting ready to add Google Maps to my Reagent front end. I could take a detour and submit a recipe based on the Leaflet example if you're interested.
from reagent-cookbook.
@inchingforward Yeah, a Google Maps recipe would be great! Please fork, branch, and make a pull request when you are ready.
from reagent-cookbook.
A file upload recipe would be interesting. Perhaps using blueimp?
from reagent-cookbook.
I have an example of doing an upload here
from reagent-cookbook.
An autocomplete recipe would be sweet.
from reagent-cookbook.
@redalastor that one's actually very easy, take a look here and should be trivial to extract to a standalone example
from reagent-cookbook.
Actually, for my own use I took jQueryUI's for the extra functionality and because I already needed to include it for the portlets. But I figure it's a common request.
from reagent-cookbook.
Autocomplete
@redalastor I think having a few autocomplete recipes would be useful.
- Since I have a jQuery UI section already, I'll probably go ahead and add a recipe for their autocomplete.
- I haven't used it yet, but I think making a recipe using reagent-forms :typeahead would probably be useful too.
- Recipe based on the example @yogthos provided in this thread
file upload
I'll take a look at blueimp and dropzone. However, this is a recipe that would probably be better if someone else wrote. So if anyone wants to take a stab at making a recipe for this I'd appreciate the help! Also, @yogthos example could be turned into a recipe if someone is interested in making that too.
dependent lists
This was requested on reddit, just making a note of it here so I don't forget.
input field validation
I think this would be good.
code organization
@Gonzih I am working on a watered-down version of a bootstrap theme for Reagent (like the themes found on wrap-bootstrap). I think this will serve as a good example for code organization for a 'larger' project.
from reagent-cookbook.
+1 for file upload, preferably also a solution that supports IE9 (using iframe transport). I have tried it with Google Closure's iFrameIo, but I'm also curious about a solution with jQuery file upload.
from reagent-cookbook.
Anyone interested in making a file upload recipe? :)
from reagent-cookbook.
This could be a good starting point, but I don't have time to convert it to a recipe in the near future. :)
The recipe could show a list of files and allow uploading/deleting files from it.
from reagent-cookbook.
Another idea for a recipe: using react-router together with Reagent. It should be possible according to David Nolen... https://twitter.com/borkdude/status/566699230853865474
from reagent-cookbook.
@yogthos Why didn't I see your yuggoth repo before. It contains several implicit recipes I really can use in my current project! Thanks! 👍
from reagent-cookbook.
haha excellent, feel free to extract those into actual recipes if you get a chance :)
from reagent-cookbook.
Moving discussion to google groups: https://groups.google.com/forum/#!topic/reagent-project/KW9-HJR9ATA
from reagent-cookbook.
Related Issues (20)
- might be a good recipe for doing server side rendering HOT 2
- Drag and drop example HOT 1
- Missing License HOT 1
- Markdown editor recipe needs to include content in the args to the render fn HOT 10
- typo in Draggable recipe HOT 1
- Routing with secretary and using dispatch! HOT 1
- File upload recipe HOT 6
- PDF.JS HOT 1
- file upload example is advertising, not tutorial HOT 1
- Use CLJSJS for Google-Maps example HOT 1
- Tip: Improving devcards experience with error-boundary HOT 2
- File upload example: callback function? HOT 4
- reagent-server-rendering puzzle? HOT 4
- Recipe correction for google-maps recipe HOT 1
- Thanks so much for this project! HOT 3
- filter-table index.html and project.clj discrepancy HOT 1
- Update ReactCSSTransitionGroup example? HOT 1
- Where is section on namespaces / imports / project structure HOT 1
- Update dependencies HOT 2
- `test-example-with-ReactTestUtils` fails with error HOT 1
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 reagent-cookbook.