r/learnjavascript • • Apr 25 '26

first step of building....?

im learning js through building things. like weather dashboard, study timer, todolist, and now im building notes app. just very basic versions. so im using chatgpt to guide me along the way. and is first step of building is thinking logic or to think how the app/site looks like??
i got this from chatgpt: that to focus on state, not ui and that ui must reflect state.
help me guide this. anyone who build products through js, how do you do, whats your approach. can you tell in detail.

9 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/tech-titan-2005 Apr 25 '26

i can't able to understand do you mean i should go with userflow first and then wireframe and then logic??

2

u/Life-Selection6377 Apr 25 '26

Let's take your Notes app as a real example.

  1. user flow- Just decide the action. like: 'when I type a note and hit enter, it should be added to my list.' (no code yet, just the plan).
  2. wireframe- Create the skeleton in html. An<input>box and an empty <ul>list. It looks boring, but that's okay.
  3. logic (state) - This is where you focus on the data.

    • imagine a simple JavaScript array: 'let mynotes=[]'
    • your logic is just a function that takes your text and pushes it into that array.
    • the magic- you then write a function that looks at that array and updates your html list to match it.

1

u/tech-titan-2005 Apr 25 '26

thanks 🙌