# Front-end project using Create-React-App

**URL:** <https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375>\
**Category:** General\
**Created:** [October 17, 2018, 5:09pm UTC](https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375 "2018-10-17T17:09:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ele-cren](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@ele-cren](https://forum.freecodecamp.org/u/ele-cren)\
**Post date:** [October 17, 2018, 5:09pm UTC](https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375/1 "2018-10-17T17:09:40Z")

</div>

Hello ! I just finished the Front-End section of the formation, and I tried to do the first project, which is Random Quote Machine, with Create-React-App.

It’s working, in local, but I would like to put my code on CodePen, I saw there is another topic but there is only one answer, I tried to put

```auto
<script>https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js</script>

```

but it’s not working.

So I tried to put my code on CodePen :

> **[Fork Me! FCC: Test Suite Template](https://codepen.io/ele-cren/pen/OBQaGV)**
>
> ...

I set all the parameters to include react, redux, redux-thunk etc…

but nothing appears, I don’t really understand why

Does someone have an idea ? Thank you 🙂

---

<div class="post-metadata">

**Author:** ![jpstanway](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jpstanway/32/103253_2.png) [@jpstanway](https://forum.freecodecamp.org/u/jpstanway)\
**Post date:** [October 17, 2018, 6:41pm UTC](https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375/3 "2018-10-17T18:41:14Z")

</div>

This doesn’t really solve your problem with CodePen (I gave up trying to use it with React projects \>.\< ) but you could try using [codesandbox.io](http://codesandbox.io) instead. I found it to be more friendly for React/Redux projects and you can even import a Git repository and have all your dependencies automatically installed for you.

Might be an alternative if you can’t figure out how to get CodePen to behave.

---

<div class="post-metadata">

**Author:** ![ele-cren](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@ele-cren](https://forum.freecodecamp.org/u/ele-cren)\
**Post date:** [October 17, 2018, 6:57pm UTC](https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375/4 "2018-10-17T18:57:37Z")

</div>

Thank you for your answer, I will give it a try and I will update this message if it works 🙂

EDIT : This is working great : [https://codesandbox.io/s/6zlj9mvrz3](https://codesandbox.io/s/6zlj9mvrz3)

But I still don’t know how to add the tests from FreeCodeCamp CDN ☹

We can see it appear but it disappears when the page made with React appears

EDIT EDIT : I won ! I just needed to add an “external resource” instead of putting a script tag inside the index.hml file !

---

<div class="post-metadata">

**Author:** ![nielsbom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nielsbom/32/101719_2.png) [@nielsbom](https://forum.freecodecamp.org/u/nielsbom)\
**Post date:** [October 17, 2018, 8:12pm UTC](https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375/5 "2018-10-17T20:12:58Z")

</div>

> [@ele-cren](#):
>
> ```auto
> <script>https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js</script>
> 
> ```

This won’t work.  
You either write:

```auto
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"/>

```

Or you put actual JavaScript code in between the tags, like so:

```auto
<script>console.log("Hi mom!");</script>

```

---

<div class="post-metadata">

**Author:** ![jpstanway](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jpstanway/32/103253_2.png) [@jpstanway](https://forum.freecodecamp.org/u/jpstanway)\
**Post date:** [October 17, 2018, 9:51pm UTC](https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375/6 "2018-10-17T21:51:17Z")

</div>

Oh yeah I forgot to mention that bit lol. But i’m glad it’s working for you!

---

<div class="post-metadata">

**Author:** ![MSF42](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/msf42/32/116295_2.png) [@MSF42](https://forum.freecodecamp.org/u/MSF42)\
**Post date:** [December 1, 2019, 11:13am UTC](https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375/7 "2019-12-01T11:13:22Z")

</div>

I’ve had the same problem with CodePen. How do I add the “external resources” in codesandbox?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 11:31am UTC](https://forum.freecodecamp.org/t/front-end-project-using-create-react-app/234375/8 "2021-01-16T11:31:28Z")

</div>

Closed on January 16, 2021, 11:31am UTC


