react_axios_requests
react_axios_requests copied to clipboard
Why all the posts need to be injected in EditPost component?
Hi Dave I was wondering, for editing a single post why do we need to pass the array of posts in EditPost component and then internally filter it by id? Rather we can simply pass the Post object as prop directly.
The same logic is true while we are showing the Post component.