JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
<table>
    <tr id='0'>
        <td id='editable' style="border:1px solid #000;padding:7px">Title</td>
        <td id='editable' style="border:1px solid #000;padding:7px">0 mins</td>
        <td id='editable' style="border:1px solid #000;padding:7px">Genre</td>
        <td id='editable' style="border:1px solid #000;padding:7px">[]</td>
        <td id='editable' style="border:1px solid #000;padding:7px">0</td>
        <td style="color:blue; display:none">0</td>
        <td>
            <button id="editButton" style="background-color:#ADD8E6" />&#128393;
        </td>
    </tr>
</table>

JavaScript

$("#editButton").click(function() {
    if ($(this).attr('id') === "editButton") {
        $(this).parent().parent().children("#editable").html("<input type='text' id='editable'/>");

        $(this).attr("id", "saveable")
    } else {
        $(this).parent().parent().children("#editable").each(function(i) {
            $(this).html("<td>" + $(this).text() + "</td>")
        })

        $(this).attr("id", "editButton")
    }
});