Can we add `JSXText.raw`?
See original GitHub issuerequire("meriyah").parse('<div>text</div>',{raw:true,jsx:true}).body[0].expression.children[0]
{ type: 'JSXText', value: 'text' }
babel
has .extra.raw
, flow
/espree
has .raw
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Rendering raw html with reactjs - javascript - Stack Overflow
There are now safer methods to render HTML. I covered this in a previous answer here. You have 4 options, the last uses...
Read more >How to Return Plain Text from a React Component | Pluralsight
In this short guide, we are going to explore how to return plain text from a React component and some alternatives.
Read more >Introducing JSX - React
It is called JSX, and it is a syntax extension to JavaScript. We recommend using it with React to describe what the UI...
Read more >Portable Text to React - Sanity.io
A library to transform Portable Text to React components. ... You can pass an object of components to use, both to override the...
Read more >Template Syntax | Vue.js
Raw HTML #. The double mustaches interpret the data as plain text, not HTML. In order to output real HTML, you will need...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tested other parsers, so we have another problem, the value was wrong
Should be
{value: " ", raw: " "}
spec has
raw
https://github.com/facebook/jsx/blob/master/AST.md#jsx-text