Skip to content

Commit

Permalink
WIP 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Oct 18, 2023
1 parent f65b151 commit 0f89afe
Show file tree
Hide file tree
Showing 9 changed files with 320 additions and 226 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ GEM
execjs (~> 2.5)
rails (>= 5.2)
rainbow (~> 3.0)
regexp_parser (2.8.1)
regexp_parser (2.8.2)
reline (0.3.9)
io-console (~> 0.5)
representable (3.2.0)
Expand Down Expand Up @@ -371,7 +371,7 @@ GEM
tilt (>= 2.1.0)
stringio (3.0.8)
temple (0.10.3)
thor (1.2.2)
thor (1.3.0)
tilt (2.3.0)
timeout (0.4.0)
trailblazer-option (0.1.2)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import PropTypes from 'prop-types';
import React, { useState } from 'react';
// import style from './HelloWorld.module.css';

const PlayerContext = React.createContext();
const PlayerProvider = PlayerContext.Provider;
const PlayerConsumer = PlayerContext.Consumer;
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions app/javascript/packs/hello-world-bundle.js

This file was deleted.

3 changes: 3 additions & 0 deletions app/javascript/packs/mobile.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
background-color: blue;
}
7 changes: 7 additions & 0 deletions app/javascript/packs/mobile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import ReactOnRails from 'react-on-rails';

import App from '../components/App';

ReactOnRails.register({
App,
});
4 changes: 2 additions & 2 deletions app/javascript/packs/server-bundle.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ReactOnRails from 'react-on-rails';

import HelloWorld from '../bundles/HelloWorld/components/HelloWorldServer';
import App from '../components/App';

// This is how react_on_rails can see the HelloWorld in the browser.
ReactOnRails.register({
HelloWorld,
App,
});
516 changes: 302 additions & 214 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 0f89afe

Please sign in to comment.