Skip to content

A library that supports the autoclosing tag function in textarea tag on the web

Notifications You must be signed in to change notification settings

adaptersorg/auto-closing-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-closing-tag-in-textarea

웹사이트에서도 코드 편집기처럼 자동으로 태그를 닫아주는 함수를 지원하는 라이브러리입니다.

use :

yarn add auto-closing-tag-in-textarea
import autoClosingTag from 'auto-closing-tag-in-textarea'
import React, { useState } from 'react'

const App = () => {
	const [contents, setContents] = useState('')

	return (
		<div>
			<input type="text" onChange={(e) => setContents(autoClosingTag(e))} value={contents} />
		</div>
	)
}

About

A library that supports the autoclosing tag function in textarea tag on the web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published