Reusability - sgml/signature GitHub Wiki
ES6 Template Literals:
define(function(require) {
var React = require('react');
var jsx = require('lib/jsxquasi');
var EchoComponent = React.createClass({
getInitialState: function() {
return { value: '' };
},
handleChange: function() {
this.setState({ value: this.refs.input.getDOMNode().value });
},
render: function() {
return jsx`
<div>
<input
ref='input'
onChange='${this.handleChange}'
defaultValue='${this.state.value}' />
${this.state.value}
</div>
`;
}
})
return function() {
var comp = jsx`<${EchoComponent} />`;
React.renderComponent(comp, document.body);
};
});
/*If you name the render function, DevTools will also include its name (e.g. "ForwardRef(myFunction)"):*/
const WrappedComponent = React.forwardRef(
function myFunction(props, ref) {
return <LogProps {...props} forwardedRef={ref} />;
}
);
/* When the ref is attached, ref.current will point to the <button> DOM node */
References
- https://medium.com/@gigobyte/enhancing-react-components-with-decorators-441320e8606a
- https://www.bennadel.com/blog/3483-replacing-double-dashes-with-em-dashes-while-typing-in-javascript.htm
- https://docs.angularjs.org/api/ng/directive/script
- https://www.ironin.it/blog/react-developers-may-like-vue.js-more.html
- https://github.com/facebook/react/issues/6436
- https://devhub.io/repos/mozilla-services-react-jsonschema-form
- http://bl.ocks.org/biovisualize/8187844
- https://marcysutton.github.io/react-a11y-presentation/#/
- http://www.24a11y.com/2017/reacts-accessibility-code-linter/
- https://reactjs.org/docs/composition-vs-inheritance.html
- https://joecritchley.svbtle.com/transclusion-in-react
- https://basarat.gitbooks.io/typescript/docs/template-strings.html
- https://codeburst.io/why-coffeescript-is-still-alive-aeb369b91b85?source=false---------0
- https://www.infoworld.com/article/3225517/javascript/coffeescript-2-arrives-with-javascript-syntax-improvements.html
- https://blog.iansinnott.com/managing-state-and-controlled-form-fields-with-react/
- https://book.klipse.tech/how-to-create-interactive-reactjs-snippets.html
- https://medium.com/node-security/the-most-common-xss-vulnerability-in-react-js-applications-2bdffbcc1fa0
- https://v1.dhruvkumarjha.com/articles/building-a-static-website-using-react-js-part-2-creating-and-hosting-the-website
- http://voidcanvas.com/polymer-web-components-polyfills/
- http://blog.krawaller.se/posts/composition-in-cyclejs-choo-react-and-angular2/
- http://brewhouse.io/blog/2015/03/24/best-practices-for-component-state-in-reactjs.html
- http://buildwithreact.com/article/stateless-functional-components
- https://www.w3schools.com/bootstrap/bootstrap_ref_css_text.asp
- https://medium.com/@albertogasparin/forcing-state-reset-on-a-react-component-by-using-the-key-prop-14b36cd7448e
- https://jaxenter.com/cross-cutting-concerns-angular-2-typescript-128925.html
- https://github.com/spring-projects/spring-framework/blob/master/src/docs/asciidoc/core/core-aop.adoc
- https://www.npmjs.com/package/react-aop
- http://coffeescript.org/#changelog
- https://docs.microsoft.com/en-us/dotnet/standard/language-independence-and-language-independent-components
- http://wiki.c2.com/?RebolLanguage
- http://wiki.c2.com/?IoMultiplexing
- http://wiki.c2.com/?TerminalMultiplexer
- http://wiki.c2.com/?OperatingSystemsDesignPrinciples
- https://docs.microsoft.com/en-us/windows/desktop/api/synchapi/nf-synchapi-waitformultipleobjects