Fireship · @fireship

I built a react app… but with a visual editor

Uploaded April 18, 2023 · Length 7:38

I built a react app… but with a visual editor

Summary

Building a React app with a visual editor, Codex, for drag and drop productivity and simplifying certain tasks.

  • react visual editor
  • codex wix
  • drag and drop productivity
  • react app development
  • web development tools

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    when I first started to learn web

  2. 0:01

    development I paid $400 for a CD of

  3. 0:04

    Adobe Dreamweaver unlike the text

  4. 0:05

    editors we use today what you see is

  5. 0:07

    what you get wizzy wigs have been around

  6. 0:09

    forever Visual Basic for Windows came

  7. 0:11

    out 30 years ago game developers write

  8. 0:13

    code by dragging and dropping in tools

  9. 0:15

    like unreal and mobile IDs like Android

  10. 0:17

    Studio always keep the UI by your side

  11. 0:19

    but on the web we choose to write most

  12. 0:20

    of our code with a blindfold on I think

  13. 0:22

    this is due to the challenge of

  14. 0:23

    responsive design during the browser

  15. 0:25

    Wars but those days are mostly behind us

  16. 0:27

    in today's video we'll build an image

  17. 0:29

    Carousel inspired by airbnb's website

  18. 0:31

    using a new visual IDE called codex

  19. 0:33

    created by Wix the sponsor of this video

  20. 0:36

    that brings drag and drop productivity

  21. 0:37

    to react apps as a stubborn web

  22. 0:39

    developer myself I was a bit skeptical

  23. 0:41

    to try it but what I found is that it

  24. 0:42

    can dramatically simplify certain jobs

  25. 0:44

    and does so in a non-invasive way one

  26. 0:47

    thing I've always hated about visual

  27. 0:48

    tools is they tend to create code that

  28. 0:50

    you don't understand but that's not the

  29. 0:51

    case with codex it works in tandem with

  30. 0:53

    VSS code while providing a robust visual

  31. 0:55

    layer on top of your code it'll be

  32. 0:57

    easier if I just show you so let's take

  33. 0:58

    a look at what we're building today we

  34. 1:00

    have a collection of cards for various

  35. 1:01

    airbnbs which are made responsive with

  36. 1:04

    CSS grid each card has its own

  37. 1:06

    collection of images which can be

  38. 1:07

    rotated through by clicking this button

  39. 1:09

    nothing too crazy but the way we'll

  40. 1:10

    build this is like nothing you've ever

  41. 1:12

    seen before when it comes to react

  42. 1:13

    development the first step is to

  43. 1:15

    download it from the website and it's

  44. 1:16

    entirely free by the way then create a

  45. 1:18

    new project you have the option to

  46. 1:20

    import an existing project the only

  47. 1:22

    requirement is that it uses typescript

  48. 1:23

    and either CSS module SAS or styleable

  49. 1:26

    for your styling the main thing I don't

  50. 1:28

    like about this editor is that it only

  51. 1:29

    supports react I would love a tool like

  52. 1:31

    this for spelt view angular and so on in

  53. 1:33

    any case I'm going to start from scratch

  54. 1:35

    and go with the built-in V template

  55. 1:37

    after it creates and installs the

  56. 1:38

    dependencies you'll notice it creates a

  57. 1:40

    board a board is just a component itself

  58. 1:42

    that allows you to isolate your own

  59. 1:44

    components very similar to a tool like

  60. 1:46

    storybook if we go ahead and click on a

  61. 1:48

    board that'll bring us into the main

  62. 1:49

    editor down here at the bottom it

  63. 1:51

    contains the code for that board again

  64. 1:53

    it's just a component that in this case

  65. 1:55

    renders the app component there's a lot

  66. 1:56

    to talk about here but first I want to

  67. 1:58

    back up back on the Home tab you'll