Closed Taymindis closed 4 years ago
Please provide more details: 1) What did you try to do? 2) What you expected to happen? 3) What happened instead?
From the code snippet it looks like you're trying to use parsing result (AST) as a React component, which doesn't make much sense...
Hi Mr Reverser, I want to convert my code to react component which show example above. How could I covert AST to react component?
You would need to walk through the generated objects that Acorn returns and create React components for each of them yourself.