Hacker News new | ask | show | jobs
by pramodliv1 3769 days ago
I use React and Backbone too. Here's the source code: https://github.com/pixyj/feel/tree/master/client/app

I use jQuery for animations and also for non-crud pixel-level DOM manipulations as in the graph shown in the home page: https://conceptcoaster.com/course/python-tutorial/ In the graph, I need to dynamically calculate height of certain elements based on the height of others. The height cannot be predicted in advance. Can React work for such cases too?

2 comments

You definitely can achieve it with React sans-jQuery, though it is definitely more boilerplate/code than the equivalent jQuery call. This is an acceptable trade-off for us, but might not be for you, YMMV
Really like the app. I like the top progress bar loading animation. I'm assuming this is the relevant file? https://github.com/pixyj/feel/blob/master/client/app/base/js...

Trying to figure out a way to implement this with React + React Router...

Thank you! Yes, that's right! I'm not familiar with React Router yet though :(