Improve examples/tutorial to demonstrate list items using individual atoms
See original GitHub issueThe video demonstrates a list where each item is represented by its own atom. However, the tutorial does not do this, and thus it does not carry the same performance benefits that are explained in the video.
Perhaps we could update the examples/tutorial so it matches the content outlined in the video?
Whilst I’m here, how would you represent each todo item as its own atom? IIUC, the parent list component would add new todo items by adding a new ID to the list:
const addItem = () => {
setTodoIdList((oldTodoIdList) => [
...oldTodoIdList,
getId(),
]);
setInputValue('');
};
… but the part I got stuck on was defining the initial text value for the new todo list item.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
Introduction to PyMOL
Tutorial-specific data files found in the IntroductionToPyMOL subfolder of the ... with the mouse in the Display Area, the entire residue in which...
Read more >3. Lists - Q for Mortals
A singleton is a list containing a single item. As any postal clerk will tell you, an item in a box is not...
Read more >Mercury User Guide and Tutorials
Individual Molecules or Atoms by left-clicking on them. •. Right-click anywhere in the display area (atom, bond or background) and choose.
Read more >Manipulating atoms one at a time with an electron beam
Researchers at MIT and elsewhere have found a way to manipulate the positions of individual atoms on a graphene sheet, which could be...
Read more >Tutorials/Cimetidine - FOX, Free Objects for Crystallography Wiki
They are in the Fox/examples/tutorial-cimetidine directory. ... your crystal structure: in the Crystal, use the Display menu-> 3D Display.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can I bump this? If I have an array of data that I want to make atomFamilies out of, what would the method be for that?
@adrianbw I am finally now able to take a look at this. That seems okay, your solution, but I can have an answer for you sometime this week. For this, if I am understanding you correctly, you want to produce atoms and you might need to make this a util class that is then exported. Then consume that class util to ultimately get the end result you would like to obtain. Again my answer might change as I will be testing this and I am sorry about the late response. Again disclaimer, very new to Recoil.