Содержание
- 2. Key
- 3. Usually you would render lists inside a component A key is a special string attribute which
- 4. Most often you would use IDs from your data as keys:
- 5. When you don’t have stable IDs for rendered items, you may use the item index as
- 6. Keys used within arrays should be unique among their siblings - they don’t need to be
- 7. React Online Marathon
- 8. State
- 9. A state is a special instance property and can be defined as an object contains data
- 10. State should never be updated directly, if we update the state of any component like the
- 11. React Online Marathon
- 12. Props
- 13. Props are basically kind of object. They used to pass data between components Whether you declare
- 14. or a function it must never modify its own props - props data is read-only
- 15. React Online Marathon
- 16. Events
- 17. Events аrе thе trіggеrеd rеасtіоns tо sресіfіс асtіоns lіkе mоusе hоvеr, mоusе сlісk, kеy prеss, еtc.
- 18. Handling events with React elements is very similar to handling events on DOM elements. React events
- 19. handler(e)
- 21. Скачать презентацию