-
Notifications
You must be signed in to change notification settings - Fork 394
Adding new components with redux
Copy table definitions (use tableContainerFactory.js factory function, look at Player.jsx for examples), create table columns, and add your request to the page you want (you may need to create a page, look at Peers.jsx or Player.jsx for examples)
Copy an existing reducer. Depending on what data you are getting (array or object), get either gotPlayer/player.js or gotPlayer/matches.js
In the future I will probably have a factory function for these since a lot of them are very similar
These files are only needed if you are transforming the data (or sorting it, or any other selector is being used)
Same rules apply as above
If you are transforming the data, add it to the transformations.js
If I left anything out, I will update this guide. It's only a general idea of what files need to be changed