Skip to content

Commit

Permalink
Merge pull request facebook#3180 from cody/https
Browse files Browse the repository at this point in the history
Using https URLs for embedded fiddles
  • Loading branch information
jimfb committed Feb 19, 2015
2 parents 21a9e8b + 8ba3ba4 commit a2f7720
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/_posts/2013-09-24-community-roundup-8.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ While this is not going to work for all the attributes since they are camelCased

[Vjeux](http://blog.vjeux.com/) re-implemented the display part of the IRC logger in React. Just 130 lines are needed for a performant infinite scroll with timestamps and color-coded author names.

<iframe width="100%" height="300" src="http://jsfiddle.net/vjeux/QL9tz/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/vjeux/QL9tz/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
6 changes: 3 additions & 3 deletions docs/_posts/2013-11-05-thinking-in-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Now that we've identified the components in our mock, let's arrange them into a

## Step 2: Build a static version in React

<iframe width="100%" height="300" src="http://jsfiddle.net/6wQMG/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/6wQMG/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

Now that you have your component hierarchy it's time to start implementing your app. The easiest way is to build a version that takes your data model and renders the UI but has no interactivity. It's easiest to decouple these processes because building a static version requires a lot of typing and no thinking, and adding interactivity requires a lot of thinking and not a lot of typing. We'll see why.

Expand Down Expand Up @@ -100,7 +100,7 @@ So finally, our state is:

## Step 4: Identify where your state should live

<iframe width="100%" height="300" src="http://jsfiddle.net/QvHnx/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/QvHnx/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

OK, so we've identified what the minimal set of app state is. Next we need to identify which component mutates, or *owns*, this state.

Expand All @@ -125,7 +125,7 @@ You can start seeing how your application will behave: set `filterText` to `"bal

## Step 5: Add inverse data flow

<iframe width="100%" height="300" src="http://jsfiddle.net/3Vs3Q/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/3Vs3Q/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

So far we've built an app that renders correctly as a function of props and state flowing down the hierarchy. Now it's time to support data flowing the other way: the form components deep in the hierarchy need to update the state in `FilterableProductTable`.

Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2013-12-23-community-roundup-12.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ React declarative approach is well suited to write games. [Cheng Lou](https://gi

[Ross Allen](https://twitter.com/ssorallen) implemented [MontageJS](http://montagejs.org/)'s [Reddit tutorial](http://montagejs.org/docs/tutorial-reddit-client-with-montagejs.html) in React. This is a good opportunity to compare the philosophies of the two libraries.

<iframe width="100%" height="300" src="http://jsfiddle.net/ssorallen/fEsYt/embedded/result,html,js" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/ssorallen/fEsYt/embedded/result,html,js" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

[View the source on JSFiddle...](http://jsfiddle.net/ssorallen/fEsYt/)

Expand Down
4 changes: 2 additions & 2 deletions docs/_posts/2014-01-06-community-roundup-14.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rails s

[Eldar Djafarov](http://eldar.djafarov.com/) implemented a mixin to link Backbone models to React state and a small abstraction to write two-way binding on-top.

<iframe width="100%" height="300" src="http://jsfiddle.net/djkojb/qZf48/13/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/djkojb/qZf48/13/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

[Check out the blog post...](http://eldar.djafarov.com/2013/11/reactjs-mixing-with-backbone/)

Expand All @@ -71,7 +71,7 @@ rails s

[Thomas Aylott](http://subtlegradient.com/) implemented an API that looks like Web Components but using React underneath.

<iframe width="100%" height="300" src="http://jsfiddle.net/SubtleGradient/ue2Aa/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/SubtleGradient/ue2Aa/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>


## React vs Angular
Expand Down
10 changes: 3 additions & 7 deletions docs/docs/thinking-in-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ React is, in my opinion, the premier way to build big, fast Web apps with JavaSc

One of the many great parts of React is how it makes you think about apps as you build them. In this post I'll walk you through the thought process of building a searchable product data table using React.

> Note:
>
> If you can't see the embedded code snippets on this page, make sure you're NOT loading this page on `https`.
## Start with a mock

Imagine that we already have a JSON API and a mock from our designer. Our designer apparently isn't very good because the mock looks like this:
Expand Down Expand Up @@ -64,7 +60,7 @@ Now that we've identified the components in our mock, let's arrange them into a

## Step 2: Build a static version in React

<iframe width="100%" height="300" src="http://jsfiddle.net/reactjs/yun1vgqb/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/reactjs/yun1vgqb/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

Now that you have your component hierarchy it's time to start implementing your app. The easiest way is to build a version that takes your data model and renders the UI but has no interactivity. It's easiest to decouple these processes because building a static version requires a lot of typing and no thinking, and adding interactivity requires a lot of thinking and not a lot of typing. We'll see why.

Expand Down Expand Up @@ -108,7 +104,7 @@ So finally, our state is:

## Step 4: Identify where your state should live

<iframe width="100%" height="300" src="http://jsfiddle.net/reactjs/zafjbw1e/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/reactjs/zafjbw1e/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

OK, so we've identified what the minimal set of app state is. Next we need to identify which component mutates, or *owns*, this state.

Expand All @@ -133,7 +129,7 @@ You can start seeing how your application will behave: set `filterText` to `"bal

## Step 5: Add inverse data flow

<iframe width="100%" height="300" src="http://jsfiddle.net/reactjs/n47gckhr/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
<iframe width="100%" height="300" src="https://jsfiddle.net/reactjs/n47gckhr/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

So far we've built an app that renders correctly as a function of props and state flowing down the hierarchy. Now it's time to support data flowing the other way: the form components deep in the hierarchy need to update the state in `FilterableProductTable`.

Expand Down

0 comments on commit a2f7720

Please sign in to comment.