use-reducer-tailwind Tailwind Templates

Use Reducer Tailwind

Training use reducer and tailwind

Welcome again to another React project! 👋

Learning Use Reducer + Tailwind - React Project

Home

  • Home page where you can create your list of random things.

Some code that I'm proud of

const [phrase, setPhrase]= useState('')

const [phrases, dispatch]= useReducer(reducer, [])

function savePhrase (event) {
event.preventDefault()

dispatch({
    type: ADD_PHRASE,
    phrase: phrase
})
}

function deletePhrase (deletedPhrase) {
dispatch({
    type: REMOVE_PHRASE,
    phrase: deletedPhrase
})
}

Built with

  • REACT;
  • Tailwind.

Test the project yourself: Teste the project here!!!

Author

Top categories

Loading Svelte Themes