Comments (2)
Hmm. Not sure I totally agree. At that point, what's the benefit of even having a component wrapped around the intrinsic HTML elements provided by React? One of the main reasons for leveraging a frontend framework like React is composability - reusing and wrapping components or HTML elements to create new ones with additional or modified behavior.
Right now, these components are very simple and basically just forward props to the HTML element. What happens when there's more complex state logic to handle validation, styling, etc. for certain types and not others? I think it could quickly lead to a bloated, complex component for the sake of style/file consolidation, the same as any other class, function, module, etc.
from andculturecode.javascript.react.components.
Maybe there is a better way to share functionality between input components then. It seems counter-productive to re-implement the same stuff in a dozen different input type components though.
from andculturecode.javascript.react.components.
Related Issues (20)
- Generic Text Style Mixins HOT 2
- Atom components extend their base DOM properties HOT 1
- Reevaluate production vs. peer/dev dependencies
- Standardize & Simplify Component Interface Format HOT 6
- Standardize how custom and modifier classes are added to components HOT 1
- Unable to resolve scss file referenced from component file
- InputFormField should accept type number
- CheckboxInput should have an option to have checkbox before label
- Address TypeScript Error Preventing Props Passing
- Convert absolute units to relative units HOT 1
- Move component-specific files HOT 6
- Leverage Anthm 2 icon set
- Merge form-field molecules
- Generalize `UnorderedList` component into `List`
- Merge DragAndDropListBox into ListBox HOT 3
- Merge LinkCard into Card component
- Rethink `InputCharacterCount` component
- Merge SubmitButton component into the Button Component
- Paragraph Styling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from andculturecode.javascript.react.components.