Open source alternatives to jsx-control-statements
200 open source apps like jsx-control-statements, closest match first.
Top picks
- U

uncontrollable
Launchuncontrollable is a small React helper for wrapping a controlled component so that chosen prop and handler pairs can be left uncontrolled by the people who use it. The idea is that you write a component with minimal state and let the wrappe
- R

react-swipeable-views
Launchreact-swipeable-views is a React component that makes swipeable views, such as image carousels and tabbed content you can swipe between. The project includes a few packages: the main react-swipeable-views component, react-swipeable-views-ut
- R

react-markdown
Launchreact-markdown is a React component that renders Markdown as React elements. You pass it a Markdown string and it returns the page content, without using dangerouslySetInnerHTML, so it is safe by default against cross-site scripting. You ca
- R

react-body-classname
Launchreact-body-classname is a small React helper for setting the class name on the document body from inside your components. Instead of changing document.body by hand, you describe the classes declaratively, and components nested in your tree
- R

react-highlight
Launchreact-highlight is a React component for syntax highlighting, built on the highlight.js library. You pass a code snippet as the children of the Highlight component as a string, and set its language through a className, so the code is colour
- B

@brainhubeu/react-carousel
Launchreact-carousel is a React carousel component from Brainhub. It is written in React rather than wrapping a jQuery plugin, and it can be used as a controlled or an uncontrolled component, similar to a form input. You pass the slides as childr
More like jsx-control-statements
React Page Visibility
Declarative, nested, stateful, isomorphic page visibility React component
About jsx-control-statements

jsx-control-statements
Neater control statements (if/for) for jsx
JSX Control Statements is a Babel plugin that adds basic control statements to JSX: conditionals and loops, written as component-like tags. It transforms those tags into plain JavaScript, so a conditional tag becomes a ternary expression that returns null when the condition is false. The plugin is aimed at developers coming to React from templating libraries such as Handlebars, who expect built-in looping and conditional syntax. The README explains that React does not include this by design, since JSX is syntactic sugar over JavaScript expressions, and this plugin keeps the same principle while making render functions easier to read. Its only dependency is Babel, and it works with React and React Native. The README also carries a warning: because it is a Babel plugin that changes your code, tools that read your source, such as static analysis and TypeScript, may not work with it. The README covers the If, Choose, For and With tags, linting with ESLint and Flow, and pure JavaScript alternatives that use && and map. The project is open source and hosted on GitHub.
- Price
- Free
- Made by
- alexgilleran
- Category
- UI Libraries
- Website
- github.com/alexgilleran/jsx-control-statements




































