News for hackers. Stuff that matters.
Re:Show HN: Render abstract syntax trees using React by codejamninja on Friday August 30, 2019 @06:00AM (#20837182)
Great feedback. The points you make are good. Listed below are the reasons I chose to go with react.

1. I'm getting my feet wet with React rendering (I will be building a full react renderer in the future for another project)

2. It may be useful in the future for dynamic code editing (not sure but a possible use case)

3. Though react really shines in the render lifecycle, it does provide a nice pattern for building components. I see this project being used as a way to componentize composable code generators and snippets.

Re:Show HN: Render abstract syntax trees using React by JasonSage on Friday August 30, 2019 @07:09PM (#20843555)
> I see this project being used as a way to componentize composable code generators and snippets.

You can do this without React though, using only JSX. I've implemented this pattern in a library (not open source yet) that builds in a lot of these composition patterns (pass children as child or prop, etc) so that you can use it in familiar ways while still just being JSX.