Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add common immutable update recipes and libraries #525

Closed
wants to merge 3 commits into from

Conversation

nateeo
Copy link

@nateeo nateeo commented Jan 15, 2018

work in progress!

resolves #498 (see for discussion)

@reactjs-bot
Copy link

reactjs-bot commented Jan 15, 2018

Deploy preview for reactjs ready!

Built with commit 8fad11d

https://deploy-preview-525--reactjs.netlify.com


### Updating Object Properties

To update an object property, you can make use of the [spread syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should reorder these sections. Show Object.assign first since it's in the standard, then mention a syntax proposal (but also mention it's enabled by default in Create React App, and already ships in Node and Chrome).

@gnapse
Copy link
Contributor

gnapse commented Jan 29, 2018

@nateeo I can't find your repo in the list of forks so I can't make a PR to you fork. I also can't push directly to this PR branch. Any ideas?

@nateeo
Copy link
Author

nateeo commented Jan 30, 2018 via email

@nateeo
Copy link
Author

nateeo commented Dec 14, 2023

@gnapse did you get the link?

@nateeo nateeo closed this Dec 14, 2023
@gnapse gnapse deleted the immutable-updates branch December 14, 2023 10:02
@gnapse
Copy link
Contributor

gnapse commented Dec 14, 2023

TBH, I do not fully recall about this right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document common recipes for immutable updates
5 participants