Right to left (RTL) support in React
<p>What would be the best way to implement RTL support in React apps? Is there a way to override default <code>&lt;p&gt;</code> and <code>&lt;span&gt;</code> tags (components) to add RTL support so that I don't have to rewrite components I already wrote to have RTL support? (for example, to have some global variable <code>window.RTL</code>, so when set to true to have all <code>&lt;p&gt;</code> and <code>&lt;span&gt;</code> tags flip text direction to RTL). I could probably change the build system, or make a babel plugin, that will replace all <code>React.createElement("p" ...)</code> with my own implementation of a p tag, but is there a better solution?</p>

<p>Thanks.</p>