[Solved] why the variable data suddenly changed to item [closed]


are you trying tell that why data name under your sections has changed to item in renderItem right?

SectionList will work as for loop where it will take your data from

{[
  { title: 'D', data: ['Devin'] },
  { title: 'J', data: ['Jackson', 'James', 'Jillian', 'Jimmy', 'Joel', 'John', 'Julie'] }
]}

and return one by one as item. You can change item to data also, it is just a variable.

Hope you got answer.

solved why the variable data suddenly changed to item [closed]