Coder Social home page Coder Social logo

tasky's Introduction

Hi there ๐Ÿ‘‹

๐ŸŒฑ Weclome to my Github page, I'm Shangguan

๐Ÿ‘€ I'm a self-taught Frontend Developer with a passion for building meaningful products, proficient in React and JavaScript.

Projects:

๐Ÿ’ช I'm currently working as a frontend engineer at a startup, continuing #100DaysofCode challenges, and contributing to open-source projects.

Tech Stack:

React TypeScript JavaScript Redux Python TailwindCSS Git

Connect With Me:

๐Ÿ“ซ Reach me at my [email protected]

๐Ÿ“Š GitHub Stats:

Top Languages Card

GitHub Streak

tasky's People

Contributors

shangguanwang avatar

Watchers

 avatar

tasky's Issues

Functionality: Add Todo Item and Save

In App.tsx, create two useStates:

  • one called "todo" which contains individual todo item, type should be string.
  • One called "todos" which is an array containing all the todo items. The array should contain 3 items: id, todo string, and a isDone boolean value.

Create a new function "handleAdd" which add the new todo item to the list, and clear the input field by set setTodo to "".

In InputField.tsx, create an interface for the 3 props we want to pass: todo, setTodo, handleAdd.

  • Pass the "todo" as value of input, and pass "setTodo" as onChange function of input field. This will capture the user input and reflect it in the input box.
  • set onSubmit to the handleAdd function

Functionality: Drag and Drop

install react-beautiful-dnd
Wrap the entire App inside tag
Wrap TodoList inside tag
Make SingleTodo

Define onDragEnd function

Functionality: SingleTodo Buttons

isDone: strikethrough when isDone button is clicked.
Delete: delete the item from todo lists.
Edit: Todo will turn to a input box. A user can edit the input field, and when a user presses enter, the new input will be reflected

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.