mmircea16 / stateless-jsx-loader Goto Github PK
View Code? Open in Web Editor NEWWebpack loader for stateless React components
License: Other
Webpack loader for stateless React components
License: Other
It would be useful if there is an ability to use React-Intl a stateless jsx file.
For example being able to write something like this:
<div> Hello <FormattedMessage id="world"/> </div>
It should be possible to create higher order stateless components. For example:
//Greetings.html.jsx
<div>
<Hello name="this.props.name"/>
<Hola name="this.props.name"/>
</div>
Where Hello
and Hola
are components defined in the same folder with Greetings
Would be great if it's possible to define the PropTypes inside the html.jsx. This'll greatly improve readability of the file, as otherwise there is no way to know what kind of props can be used.
Maybe have a convention to put the PropTypes defintion on top of the file in a comment. Similar to what others are doing, e.g. in Java has comments with Annotations in them. Maybe something similar to this
<!-- @PropTypes: { someProp: PropTypes.string ,.. } -->
(From a suggestion of @sroidl - thank you!)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.