Category: React

  • How to convert a Rails (erb) view to React (jsx)

    I’m rebuilding the front end of a Rails 5 project as a single page app in React. Here’s my “quick and dirty” search and replace approach to jump-starting the process. Comments HTML comments need to be converted to JavaScript comments. Search: <!– Replace: {/* Search: –> Replace: */} ERB Tags The dynamic content that was […]