-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Connor Brathwaite
committed
Jun 10, 2019
1 parent
3c4f06b
commit 0f92393
Showing
7 changed files
with
87 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# ReasonReact | ||
|
||
[![CircleCI](https://circleci.com/gh/connorbrathwaite/reason-react-fetch-demo/tree/master.svg?style=svg&circle-token=82cefcc8703fdd319b1d8bfe01508140abc6fab6)](https://circleci.com/gh/connorbrathwaite/reason-react-fetch-demo/tree/master) | ||
|
||
To run: | ||
|
||
* `yarn install` | ||
* `yarn start` | ||
- `yarn install` | ||
- `yarn dev:start` | ||
- `yarn dev:server` | ||
|
||
[Learn more tonight](https://www.meetup.com/ReasonMTL/events/261548153/?recEventId=261548153&gj=wcs1_e&rv=wcs1_e&_xtd=gatlbWFpbF9jbGlja9oAJGMxYjk4MjY0LWY2ZWMtNGIwMi1hZjlhLTk2YjJmZTNkMGZjMg&_af=event&_af_eid=261548153&recNumber=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[@react.component] | ||
let make = (~children) => { | ||
<> | ||
<pre className="mb-2"> | ||
<code> | ||
"[@react.component] [@bs.module] | ||
external make: (~isVisible: bool=?, ~_type: string=?, ~message: string) => React.element = \"./Alert\";" | ||
->Utils.str | ||
</code> | ||
</pre> | ||
children | ||
</>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[@react.component] | ||
let make = (~count=0) => | ||
<div className="sticky flex align-center justify-end m-4"> {count->string_of_int->Utils.str} </div>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
[@react.component] | ||
let component = () => | ||
<header className="flex flex-grow flex-wrap items-center m-4"> | ||
<Link title="Home" href="/" className="hover:text-gray-500 text-xs uppercase mr-4"> "Home"->Utils.str </Link> | ||
<Link title="Search" href="/intro" className="hover:text-gray-500 text-xs uppercase mr-4"> | ||
<Link title="Intro" href="/intro" className="hover:text-gray-500 text-xs uppercase mr-4"> | ||
"Intro"->Utils.str | ||
</Link> | ||
<Link title="Search" href="/search" className="hover:text-gray-500 text-xs uppercase mr-4"> | ||
<Link title="Cards" href="/cards" className="hover:text-gray-500 text-xs uppercase mr-4"> | ||
"Cards"->Utils.str | ||
</Link> | ||
<Link title="Async Hooks" href="/search" className="hover:text-gray-500 text-xs uppercase mr-4"> | ||
"Async Hooks"->Utils.str | ||
</Link> | ||
<Link title="Vanilla React" href="/vanilla-react" className="hover:text-gray-500 text-xs uppercase mr-4"> | ||
"Vanilla React Interop"->Utils.str | ||
</Link> | ||
</header>; | ||
</header>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters