dhomini-rabelo / Projetos-React

Projetos com react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Projetos com React


🛠️ Ferramentas

  • Vite
  • Typescript
  • Context API
  • React-router-dom
  • Styled-components

🚀 Implementação do styled-components dentro de um objeto

# Arquivo de estilização

import styled from 'styled-components'

export const Div = {

    container: styled.div`
        background-color: #17081F;
        color: #797A81;
        min-height: 100vh;
    `,

    content: styled.div`
        margin: 0 auto;
        max-width: 980px;
        padding: 1.875rem 0.625rem;
    `

}


----------------------------------------------------------


# Arquivo do componente

function App() {
  const [tasks, setTasks] = useState<taskType[]>([])
  
  function addNewTask(text: string) {
    const newTask = { text, done: false }
    setTasks((tasks) => [...tasks, newTask])
  }

  return (
    <PageContext.Provider value={{ tasks, setTasks }}>
      <Div.container>
        <Div.content>
      
          <H1.title>Tarefas</H1.title>
      
          <InputArea addNewTask={addNewTask} />
          {tasks.map((task, index)=> <Task key={index} task={task} index={index} />)}
      
        </Div.content>
      </Div.container>
    </PageContext.Provider>
  )
}

🎥 Projetos


  • Formulário Multi-etapas


    project-result


  • Sistema financeiro


    project-result


  • To-do List


    project-result

About

Projetos com react

License:MIT License


Languages

Language:TypeScript 93.5%Language:HTML 3.3%Language:CSS 3.2%