Skip to content

Commit bb70044

Browse files
committed
Fixed multiple duplicate codepen embed scripts issue
1 parent 921b5d8 commit bb70044

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

content/docs/thinking-in-react.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ Now that we've identified the components in our mock, let's arrange them into a
6262
## Step 2: Build A Static Version in React
6363

6464
<p data-height="600" data-theme-id="0" data-slug-hash="BwWzwm" data-default-tab="js" data-user="lacker" data-embed-version="2" class="codepen">See the Pen <a href="https://codepen.io/gaearon/pen/BwWzwm">Thinking In React: Step 2</a> on <a href="http://codepen.io">CodePen</a>.</p>
65-
<script async src="//assets.codepen.io/assets/embed/ei.js"></script>
6665

6766
Now that you have your component hierarchy, it's time to implement 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 best 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.
6867

@@ -107,7 +106,6 @@ So finally, our state is:
107106
## Step 4: Identify Where Your State Should Live
108107

109108
<p data-height="600" data-theme-id="0" data-slug-hash="qPrNQZ" data-default-tab="js" data-user="lacker" data-embed-version="2" class="codepen">See the Pen <a href="https://codepen.io/gaearon/pen/qPrNQZ">Thinking In React: Step 4</a> on <a href="http://codepen.io">CodePen</a>.</p>
110-
<script async src="//assets.codepen.io/assets/embed/ei.js"></script>
111109

112110
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.
113111

yarn.lock

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,6 +2320,14 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
23202320
safe-buffer "^5.0.1"
23212321
sha.js "^2.4.8"
23222322

2323+
create-react-class@^15.6.0:
2324+
version "15.6.2"
2325+
resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.2.tgz#cf1ed15f12aad7f14ef5f2dfe05e6c42f91ef02a"
2326+
dependencies:
2327+
fbjs "^0.8.9"
2328+
loose-envify "^1.3.1"
2329+
object-assign "^4.1.1"
2330+
23232331
cross-env@^3.1.1:
23242332
version "3.2.4"
23252333
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-3.2.4.tgz#9e0585f277864ed421ce756f81a980ff0d698aba"
@@ -4392,7 +4400,7 @@ graphql-skip-limit@^1.0.5:
43924400
dependencies:
43934401
babel-runtime "^6.26.0"
43944402

4395-
graphql@0.10.5, graphql@^0.10.3, graphql@^0.10.5:
4403+
graphql@^0.10.3, graphql@^0.10.5:
43964404
version "0.10.5"
43974405
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.10.5.tgz#c9be17ca2bdfdbd134077ffd9bbaa48b8becd298"
43984406
dependencies:
@@ -7725,7 +7733,16 @@ react-deep-force-update@^2.0.1:
77257733
version "2.0.1"
77267734
resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-2.0.1.tgz#4f7f6c12c3e7de42f345992a3c518236fa1ecad3"
77277735

7728-
react-dom@16.0.0, react-dom@^15.6.0, react-dom@^16.0.0:
7736+
react-dom@^15.6.0:
7737+
version "15.6.2"
7738+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.6.2.tgz#41cfadf693b757faf2708443a1d1fd5a02bef730"
7739+
dependencies:
7740+
fbjs "^0.8.9"
7741+
loose-envify "^1.1.0"
7742+
object-assign "^4.1.0"
7743+
prop-types "^15.5.10"
7744+
7745+
react-dom@^16.0.0:
77297746
version "16.0.0"
77307747
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.0.0.tgz#9cc3079c3dcd70d4c6e01b84aab2a7e34c303f58"
77317748
dependencies:
@@ -7788,7 +7805,17 @@ react-side-effect@^1.1.0:
77887805
exenv "^1.2.1"
77897806
shallowequal "^1.0.1"
77907807

7791-
react@16.0.0, react@^15.6.0, react@^16.0.0:
7808+
react@^15.6.0:
7809+
version "15.6.2"
7810+
resolved "https://registry.yarnpkg.com/react/-/react-15.6.2.tgz#dba0434ab439cfe82f108f0f511663908179aa72"
7811+
dependencies:
7812+
create-react-class "^15.6.0"
7813+
fbjs "^0.8.9"
7814+
loose-envify "^1.1.0"
7815+
object-assign "^4.1.0"
7816+
prop-types "^15.5.10"
7817+
7818+
react@^16.0.0:
77927819
version "16.0.0"
77937820
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0.tgz#ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d"
77947821
dependencies:

0 commit comments

Comments
 (0)