Share JSX code with CodeThis
React JSX snippets with props, hooks, and context — share a component without spinning up a sandbox.
Paste JSX nowWhat you get
- JSX-aware syntax highlighting via CodeMirror
- Instant shareable link — no signup required
- Optional expiration (7 days, 30 days, permanent)
- Password protection for private pastes
- Works with the REST API and MCP server
- Rich markdown and MDC components alongside code
Common use cases for JSX pastes
- Component examples for docs
- Hook patterns
- Bug repros for React libraries
- Code review diffs
Example
function Counter({ initial = 0 }) {
const [count, setCount] = useState(initial)
return (
<button onClick={() => setCount(c => c + 1)}>
Clicked {count} times
</button>
)
}
Related languages
Ready to share some JSX?