Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 99673e6

Browse files
committed
Update README.md example to include lib requires
The `README.md` lacked the library dependencies it required in order to run. This adds those `require` statements in the specific order they need to be loaded. closes #210
1 parent 69f561f commit 99673e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ You can simply include `React::Component` to get the power of a complete DSL to
4848
As events occur, components update their state, which causes them to rerender, and perhaps pass new parameters to lower level components, thus causing them to rerender.
4949

5050
```ruby
51+
require 'opal'
52+
require 'browser/interval'
53+
require 'opal-jquery'
54+
require 'react/react-source'
55+
require 'hyper-react'
56+
require 'react/top_level_render'
57+
5158
class HelloWorld < React::Component::Base
5259
param :time, type: Time
5360
render do

0 commit comments

Comments
 (0)