Using: - ruby "2.3.1" gem "rails", "5.0.0.1" gem "react_on_rails", "~> 6.3.2"
here's my question:
Issue
Clicking on a checkbox will add the contact to $$selectedContacts
, but then every contact rerenders, which is very slow
![Contacts Index]
Here is a picture of the user page: ( a simple index page) http://take.ms/e7gXG
Questions
- How do I properly use
shouldComponentUpdate
inContact.jsx
so that a contact row only rerenders when it's been changed? - Where should I use a container? Feel like using
connect
inContact.jsx
might not be the best thing? - any other suggestions
Here's a link to the gist: https://gist.github.com/heyogrady/4ba880c7ecffe18fdb70ad2d56e034cc