Skip to content

Commit 8247203

Browse files
committed
fix: remove double registration from server-bundle.js template
1 parent 18e0376 commit 8247203

File tree

1 file changed

+1
-8
lines changed
  • lib/generators/react_on_rails/templates/base/base/app/javascript/packs

1 file changed

+1
-8
lines changed
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
import ReactOnRails from 'react-on-rails';
2-
3-
import HelloWorld from '../src/HelloWorld/HelloWorldServer';
4-
5-
// This is how react_on_rails can see the HelloWorld in the browser.
6-
ReactOnRails.register({
7-
HelloWorld,
8-
});
1+
// Placeholder comment - auto-generated imports will be prepended here by react_on_rails:generate_packs

0 commit comments

Comments
 (0)