Skip to content

Tag: javascript

Submitting form with textarea in React

I have a textarea that I want to stringify to JSON on form submission. I will even settle for just having the function set the textarea value. let value does not update. Do I need to use setState? this? Answer There are a number of issues in the code indicating a lack of familiarity with the excellent React t…

How to pass in a variable to the CSS grid repeat() function

I am attempting create a function which involves passing in a JS variable as a term in the CSS grid repeat() function. I do not know how to do this and cannot find google results for it, below is my attempt to estimate a possible implementation. This is for the Odin Project’s Etch-A-Sketch Project (link…