How to use React in a ClojureScript project | beginner

Veröffentlicht am: 19 Juli 2020
auf dem Kanal: Between Two Parens
1,452
70

How to add React to your ClojureScript project is easier than ever and is the first step before we can even start writing React code.

This video will show you how to add React to a ClojureScript project through NPM. The goal is to provide another example of using an NPM package.

NOTE: If you're developing a ClojureScript project and you want to use React, I recommend using Reagent over Vanilla React. You can 100% use Vanilla React without a wrapper, but because of the helpful built in state management tools + hiccup support that comes with Reagent, I recommend Reagent to start.

😎 UPDATES

OCTOBER 08, 2020

As of the latest version of the Clojure CLI Tools, the commands used in this app will still work, but you should prefer:

- clj -M:dev`

⏰ Timestamps:

00:35 - Intro
01:16 - React Documentation run through
02:35 - Add React DOM Container to HTML
03:36 - Add React CDN script tags to HTML
04:03 - Create a React Element
07:19 - Render a React Element
11:06 - Use the React NPM Package
13:25 - Closing comments

💟 Housekeeping

New to the series? Here is the playlist for all the videos in order. Follow along at your own pace!

   • Begin ClojureScript Web Development  

📚 Additional Resources

js namespace (js/)
https://www.verypossible.com/insights...

double dot form (..)
https://clojure.org/reference/java_in...


❤️ Follow Me

Twitter -   / athomasoriginal  
Between Two Parens Blog - https://betweentwoparens.com/
Github - https://github.com/athomasoriginal


Auf dieser Seite können Sie das Online-Video How to use React in a ClojureScript project | beginner mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Between Two Parens 19 Juli 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,452 Mal angesehen und es wurde von 70 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!