JSFiddle - React, Tailwind, and code Playground

by Akram kamal

HTML

<section id="SSID" data-texts='"Text1", "Text2", "Text3"'></section>

JavaScript

var Selection = JSON.parse('[' + $("#SSID").data("texts") + ']');
alert(Selection);