---
title: "Discussion on \"Real-world examples of force renders in DraftJS — a.k.a. When/How to use EditorState#forceSelection\" | Hashnode"
description: "Discussion on \"Real-world examples of force renders in DraftJS — a.k.a. When/How to use EditorState#forceSelection\". EditorState has a static method called forceSelection. It should be used when you want to re-render the editor — with selection and focus — forcefully. \nHere is what is said about it in the docs:\n\n📘 forceSelection\nstatic forceSelection(\n    editorSt..."
url: "https://hashnode.com/posts/real-world-examples-of-force-renders-in-draftjs-aka-whenhow-to-use-editorstateforceselection/58f07a438119c8887ef19478"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Real-world examples of force renders in DraftJS — a.k.a. When/How to use EditorState#forceSelection](https://saiki.hashnode.dev/real-world-examples-of-force-renders-in-draftjs-aka-whenhow-to-use-editorstateforceselection?utm_source=hashnode&utm_medium=feed)

EditorState has a static method called forceSelection. It should be used when you want to re-render the editor — with selection and focus — forcefully. Here is what is said about it in the docs: 📘 forceSelection static forceSelection( editorSt...

Apr 14, 2017 · 3 min read · saiki.hashnode.dev  
Updated Apr 30, 2022  
Read the article

-   [#draftjs](https://hashnode.com/tag/draftjs)

## Written by

[Sai Kishore Komanduri](https://hashnode.com/@saiki)

@saiki · Bangalore, India

  
[View profile](https://hashnode.com/@saiki)

Engineering an eGovernance Product | Hashnode Alumnus | I love pixel art

I have been in love with computers and everything related since I played my first game of Dangerous Dave back in the 90s. Graduating with a master&#39;s degree in Biology, and a bachelor&#39;s in Pharmacy; I have been fortunate enough to dabble my hands in things ranging from copywriting to computer networks. I love pixel art! I&#39;ve written a few more things about me, here and here !

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
