pawelgrzybek / snippet-generator

Snippet generator for Visual Studio Code, Sublime Text and Atom
https://snippet-generator.app/
1.74k stars 202 forks source link

Improvement: onInput Function #4

Closed marcobiedermann closed 6 years ago

marcobiedermann commented 6 years ago

I've simplified the onChange functions quire a bit. Instead of having three different methods for updating the description, tabtrigger and snippet, I've created one function which updates each input value depending on it's name and value. Saves a few bytes and makes the code mode modular and extensible.

pawelgrzybek commented 6 years ago

Thanks a lot @marcobiedermann ! Top contributor and really great idea! Neat improvement to codebase! Have a lovely day and thanks again!

🥑

marcobiedermann commented 6 years ago

@pawelgrzybek You are very welcome 😃 I like your project. Really nice and good use case for a simple React app.

Thanks, have a good one!