Check out example codes for "r convert list to comma separated string". It will help you in understanding the concepts better.

Code Example 1

# Basic syntax:
paste(shQuote(your_list), collapse=", ")

Learn ReactJs, React Native from akashmittal.com