100 ms delay on every click (measured in Chrome's Profiles tab). I'm on a 2013 MBP. Seems a bit too much for making a number bold.
Show HN: A React.js yearly calendar component
11–20 of 49 posts
Re: Show HN: A React.js yearly calendar component
#12Thanks. Really useful and you save me a lot of time! If I found some problem I'll contact you ;)
Re: Show HN: A React.js yearly calendar component
#13Re: Show HN: A React.js yearly calendar component
#14Re: Show HN: A React.js yearly calendar component
#15100 ms delay on every click (measured in Chrome's Profiles tab). I'm on a 2013 MBP. Seems a bit too much for making a number bold.
Any idea on how one could optimize the rendering function to reduce this lag (which BTW I can barely see on my 2015 MBP)?
Re: Show HN: A React.js yearly calendar component
#16Is that really worth showing to HN? I mean, I dont want to be rude -- your code is ok, no problem here -- but it's not even a library, it is just a widget in 200 LOC, that renders a single table. What's the achievement here?
Its an innovative calendar layout and while I don't know if I would use it in time / data selection, in terms of visualizing data inside of a year it has a lot of potential.
Re: Show HN: A React.js yearly calendar component
#17Is that really worth showing to HN? I mean, I dont want to be rude -- your code is ok, no problem here -- but it's not even a library, it is just a widget in 200 LOC, that renders a single table. What's the achievement here?
Re: Show HN: A React.js yearly calendar component
#18Is that really worth showing to HN? I mean, I dont want to be rude -- your code is ok, no problem here -- but it's not even a library, it is just a widget in 200 LOC, that renders a single table. What's the achievement here?
I just wanted to share this, I think some people disagree with you if I am in homepage right now
Re: Show HN: A React.js yearly calendar component
#19Earlier quoted context omitted.
Any idea on how one could optimize the rendering function to reduce this lag (which BTW I can barely see on my 2015 MBP)?
Cacheing? You're doing a lot of work in render that could be computed once. Try saving a few years +/- into state on componentDidMount. And for day clicks, pull rows that arn't touched from the cache.
Re: Show HN: A React.js yearly calendar component
#20Is that really worth showing to HN? I mean, I dont want to be rude -- your code is ok, no problem here -- but it's not even a library, it is just a widget in 200 LOC, that renders a single table. What's the achievement here?
imho, this is worth showing as a piece of design. Its an innovative calendar layout and while I don't know if I would use it in time / data selection, in terms of visualizing data inside of a year it has a lot of potential.
Thanks for your kind words anyway! :)