How to use React in a ClojureScript project | beginner

Publicado em: 19 Julho 2020
no canal de: 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


Nesta página do site você pode assistir ao vídeo on-line How to use React in a ClojureScript project | beginner duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Between Two Parens 19 Julho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,452 vezes e gostou 70 espectadores. Boa visualização!