Reactension 😄
Handpicked set of Snippets for Reactjs and Nodejs.
Features
- There are some usefull snippets for reactjs and much more will come soon.
Purpose
To avoid boilerplate code
Snippet Usage
const funcName = (props) => {
$
}
return $;
import $ from './$'
import $ from './components/$'
export default $;
render() {
return(
$
);
}
import React, { Component } from 'react';
class $ extends Component {
render() {
return <div>This is $ component.</div>;
}
}
export default $;
class $ extends Component {
render() {
return <div>This is $ component.</div>;
}
}
constructor(props) {
super(props);
this.state = {$};
}
const INITAIL_STATE = {};
export default (state = INITAIL_STATE, acion) => {
switch (action.type) {
default:
return state;
}
}
import React from "react";
import { StyleSheet, Text, View } from "react-native";
class ex extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>This is ex Component!</Text>
</View>
);
}
}
export default ex;
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center"
}
});
Contribution
If you want to expand this package, file an issue or a PR.
MIT License
Kiran bhalerao
Thank You! ❤️