My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

ReactJS - Set cursor position inside textarea

Default profile photo
Anonymous
·Feb 20, 2018

Is there a way to programmatically set the cursor position inside a textarea?

My use-case is maintaining writing history. I can store the last position of the cursor, but I want to set this the next time the user visits the textarea.