javascript – How can I make a string appear in a certain location from localstorage?

I have the following code:

  <div id = "text" contenteditable = "true"></div>

function loadsaved() {

 let stringValue = document.getElementById("text").innerHTML;
 let y = localStorage.getItem("savetext");


What I want is, when I press the button, it’ll load the string that was saved in local storage in that div text box. How can I achieve this?