You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: server_rendering_js_code.rb
    path of file: ./repos/react_on_rails/lib/react_on_rails
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ReactOnRails
  module ServerRenderingJsCode
    class << self
      def js_code_renderer
        @js_code_renderer ||= if ReactOnRails::Utils.react_on_rails_pro?
                                ReactOnRailsPro::ServerRenderingJsCode
                              else
                                self
                              end
      end

      def server_rendering_component_js_code(
        props_string: nil,
        rails_context: nil,
        redux_s
    
      def server_rendering_component_js_code(
        props_string: nil,
        rails_context: nil,
        redux_stores: nil,
        react_component_name: nil,
        render_options: nil
      )

        config_server_bundle_js = ReactOnRails.configuration.server_bundle_js_file

        if render_options.prerender == true && config_server_bundle_js.blank?
          msg = <<~MSG
            The `prerender` option to allow Server Side Rendering is marked as true but the ReactOnRails configuration
            for `server_bundle_js_file` is nil or not present in `config/initializers/react_on_rails.rb`.
            Set `config.server_bundle_js_file` to your javascript bundle to allow server side rendering.
            Read more at https://www.shakacode.com/react-on-rails/docs/guides/react-server-rendering/
          MSG
          raise ReactOnRails::Error, msg
        end