Today I built out the forms for my Web3 app using Tailwind CSS. This project is making me fall in love with Tailwind after seeing the ease of creating good looking frontends with their inline classes. In order to modularize the code better and make it easier when it's time to control the components and deal with their inputs, I created an Input component. All of the inputs in the form are this Input component, with their value, name, placeholder, and onChange method passed as props to the Input component. This allowed me to put all the common styles within the className of Input, and eliminate any redundancy in the styling.
Subscribe to:
Post Comments (Atom)
190: Sablier
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The ZKasino project recently exit scammed over 33 million dollars worth of Ethereum. he recent debacle surrounding ZKasino offers valuable...
-
In addition to its native SDK, Hedera also supports smart contracts in a platform compatible with the Ethereum Virtual Machine. This allows ...
No comments:
Post a Comment